From 92aeffcfd4c0771988466262b910e04948f784bc Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 1 May 2005 19:31:19 +0000 Subject: Fix for colliding with portals. --- src/map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map.cpp b/src/map.cpp index c27a29d6..17e9fd02 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -227,7 +227,8 @@ bool Map::getWalk(int x, int y) std::list::iterator i = beings.begin(); while (i != beings.end()) { Being *being = (*i); - if (being->x == x && being->y == y) { + // Collision when non-portal being is found at this location + if (being->x == x && being->y == y && being->job != 45) { return false; } i++; -- cgit v1.2.3-70-g09d2