diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 10:14:17 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 10:14:17 +0000 |
commit | c887f550b55b6160f074cb3160a4442ca659fad9 (patch) | |
tree | 43cd78f7bdbf00e0764792a2dbd49e7b115ac971 /src/map.cpp | |
parent | e880b17081962580afea1d003600afffe062d427 (diff) | |
download | mana-c887f550b55b6160f074cb3160a4442ca659fad9.tar.gz mana-c887f550b55b6160f074cb3160a4442ca659fad9.tar.bz2 mana-c887f550b55b6160f074cb3160a4442ca659fad9.tar.xz mana-c887f550b55b6160f074cb3160a4442ca659fad9.zip |
Implemented item dropping.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index ec4abc50..a88926d7 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -286,7 +286,7 @@ Map::getWalk(int x, int y) const } bool -Map::occupied(int x, int y) +Map::occupied(int x, int y) const { Beings &beings = beingManager->getAll(); for (BeingIterator i = beings.begin(); i != beings.end(); i++) @@ -308,7 +308,7 @@ Map::tileCollides(int x, int y) const } bool -Map::contains(int x, int y) +Map::contains(int x, int y) const { return x >= 0 && y >= 0 && x < mWidth && y < mHeight; } |