mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-09 06:06:09 +00:00
correction of baseID calculation formula to avoid "Coordinates do not exist" error
This commit is contained in:
@@ -118,7 +118,7 @@ class MyGenerator {
|
||||
|
||||
|
||||
public function getBaseID($x, $y){
|
||||
return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX + $x + 1);
|
||||
return ((WORLD_MAX - $y) * (WORLD_MAX * 2 + 1)) + (WORLD_MAX - $x + 1);
|
||||
}
|
||||
|
||||
public function getMapCheck($wref){
|
||||
|
||||
Reference in New Issue
Block a user