diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-28 23:31:00 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-28 23:31:00 +0000 |
commit | fd2cecb5c45cd6f69b193c97b7c78121f6b5b30f (patch) | |
tree | 0e6bad9d810da54c0fcde8fd1afe46bd85babd2b /src/game-server/mapcomposite.cpp | |
parent | e166458f5425316f4f48aadd7007917ab876be17 (diff) | |
download | manaserv-fd2cecb5c45cd6f69b193c97b7c78121f6b5b30f.tar.gz manaserv-fd2cecb5c45cd6f69b193c97b7c78121f6b5b30f.tar.bz2 manaserv-fd2cecb5c45cd6f69b193c97b7c78121f6b5b30f.tar.xz manaserv-fd2cecb5c45cd6f69b193c97b7c78121f6b5b30f.zip |
Revert to the old pathfinding system without collision with beings, as the new one is too cpu intensive.
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index 627582fd..6fea9488 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -625,8 +625,6 @@ void MapComposite::remove(Thing *ptr) void MapComposite::update() { - mMap->resetTempWalk(); - for (int i = 0; i < mContent->mapHeight * mContent->mapWidth; ++i) { mContent->zones[i].destinations.clear(); @@ -645,8 +643,6 @@ void MapComposite::update() Point const &pos1 = obj->getOldPosition(), &pos2 = obj->getPosition(); - mMap->setTempWalk(pos2.x / 32, pos2.y / 32, false); - MapZone &src = mContent->getZone(pos1), &dst = mContent->getZone(pos2); if (&src != &dst) |