mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 17:37:21 +00:00
fix distance calculation when adding new raid in farmlist (#378)
This commit is contained in:
@@ -102,7 +102,7 @@ if ($action === 'addSlot' && $lid) {
|
|||||||
/* ======================
|
/* ======================
|
||||||
FINAL INSERT
|
FINAL INSERT
|
||||||
====================== */
|
====================== */
|
||||||
$coor = $database->getCoor($village->wid);
|
$coor = $database->getCoor($FLData['wref']);
|
||||||
$distance = $database->getDistance($coor['x'], $coor['y'], $WrefX, $WrefY);
|
$distance = $database->getDistance($coor['x'], $coor['y'], $WrefX, $WrefY);
|
||||||
|
|
||||||
$database->addSlotFarm(
|
$database->addSlotFarm(
|
||||||
|
|||||||
Reference in New Issue
Block a user