summaryrefslogtreecommitdiff
path: root/src/game-server/mapreader.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-11 01:38:36 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-11 11:10:34 +0100
commit01977a101d839107d8c28ca31f885f67e660dd68 (patch)
treee03d1bfc3615a9ea4af1fe5f2b6be1f7904d6320 /src/game-server/mapreader.cpp
parent4e348e907e4e610908971f4ca7e9b791499bd8f1 (diff)
downloadmanaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.gz
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.bz2
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.tar.xz
manaserv-01977a101d839107d8c28ca31f885f67e660dd68.zip
Split path finding out of the Map class
Extracted the path finding algorithm out of the Map class and introduced a new class called PathInfo that has the path finding information that used to be part of MetaTile. This allows a single vector of path information to be shared between all maps running on the server, significantly reducing the memory overhead per map (for 200x200 maps, the memory reduction is about 1 MB per map). Part of this change is some cleanup, like moving the 'occupation' counts into MetaTile, inlining some methods for performance reasons, and using STL to simplify memory management. Mantis-issue: 106 Reviewed-by: Bertram
Diffstat (limited to 'src/game-server/mapreader.cpp')
-rw-r--r--src/game-server/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/mapreader.cpp b/src/game-server/mapreader.cpp
index f96de174..eefca086 100644
--- a/src/game-server/mapreader.cpp
+++ b/src/game-server/mapreader.cpp
@@ -589,5 +589,5 @@ void MapReader::setTileWithGid(Map *map, int x, int y, int gid)
}
if (gid != set)
- map->blockTile(x, y, Map::BLOCKTYPE_WALL);
+ map->blockTile(x, y, BLOCKTYPE_WALL);
}