diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-09 23:02:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-09 23:02:28 +0300 |
commit | 94a9a81d9c6aa9fa287616c8b4bfc5ea86214dcd (patch) | |
tree | a5fd9ec3c5844ce9b8d6b4c63c25c9ded803a6a0 /src/localplayer.cpp | |
parent | 51169702a6fba4626eeae44faa35ebcbf40e5fed (diff) | |
download | ManaVerse-94a9a81d9c6aa9fa287616c8b4bfc5ea86214dcd.tar.gz ManaVerse-94a9a81d9c6aa9fa287616c8b4bfc5ea86214dcd.tar.bz2 ManaVerse-94a9a81d9c6aa9fa287616c8b4bfc5ea86214dcd.tar.xz ManaVerse-94a9a81d9c6aa9fa287616c8b4bfc5ea86214dcd.zip |
Impliment air and water block types.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index bcc78dd1b..0dea8ddac 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -3835,6 +3835,12 @@ void LocalPlayer::resetYellowBar() miniStatusWindow->updateStatus(); } +unsigned char LocalPlayer::getWalkMask() const +{ + // for now blocking all types of collisions + return Map::BLOCKMASK_WALL | Map::BLOCKMASK_AIR | Map::BLOCKMASK_WATER; +} + void AwayListener::action(const gcn::ActionEvent &event) { if (event.getId() == "ok" && player_node && player_node->getAwayMode()) |