diff options
author | Blue <bluesansdouze@gmail.com> | 2009-05-06 00:21:51 +0200 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-05 18:49:31 -0400 |
commit | 9bf793b93df88fb38c2f29d5ec7643d11899ef2f (patch) | |
tree | 3139788a4ac1c936786f1b6ba9cdf2d7680f3ccf /src/game-server/map.hpp | |
parent | a151d1693572f32fcd7572f20e80ed99500b42fa (diff) | |
download | manaserv-9bf793b93df88fb38c2f29d5ec7643d11899ef2f.tar.gz manaserv-9bf793b93df88fb38c2f29d5ec7643d11899ef2f.tar.bz2 manaserv-9bf793b93df88fb38c2f29d5ec7643d11899ef2f.tar.xz manaserv-9bf793b93df88fb38c2f29d5ec7643d11899ef2f.zip |
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.
Diffstat (limited to 'src/game-server/map.hpp')
-rw-r--r-- | src/game-server/map.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |