summaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
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 'scripts')
0 files changed, 0 insertions, 0 deletions