diff options
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index fa7a38c6..30d31bc7 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -334,8 +334,10 @@ MapContent::MapContent(Map *map) { buckets[i] = NULL; } - mapWidth = (map->getWidth() * 32 + zoneDiam - 1) / zoneDiam; - mapHeight = (map->getHeight() * 32 + zoneDiam - 1) / zoneDiam; + mapWidth = (map->getWidth() * map->getTileWidth() + zoneDiam - 1) + / zoneDiam; + mapHeight = (map->getHeight() * map->getTileHeight() + zoneDiam - 1) + / zoneDiam; zones = new MapZone[mapWidth * mapHeight]; } |