From 9bf793b93df88fb38c2f29d5ec7643d11899ef2f Mon Sep 17 00:00:00 2001 From: Blue Date: Wed, 6 May 2009 00:21:51 +0200 Subject: tmwserv - Warp fix Prevent for warping in a unwalkable area, choose randomly a random place to warp if the asked is unwalkable Added a default value to map::getWalk too. --- src/game-server/map.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game-server') diff --git a/src/game-server/map.hpp b/src/game-server/map.hpp index bbc33fea..059d9826 100644 --- a/src/game-server/map.hpp +++ b/src/game-server/map.hpp @@ -128,7 +128,7 @@ class Map /** * Gets walkability for a tile with a blocking bitmask */ - bool getWalk(int x, int y, char walkmask) const; + bool getWalk(int x, int y, char walkmask = BLOCKMASK_WALL) const; /** * Returns the width of this map. -- cgit v1.2.3-60-g2f50