summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-01-15 14:15:50 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-01-15 14:15:50 +0000
commit9171b9739dfb8a1ca0bf963c5041d0a801e4aa90 (patch)
treea7e4514fb14b0c166ec052df1887b4963c51574b /src/map.cpp
parent806dd2ec3cdb39c8ae528b65f93984ed66496709 (diff)
downloadmana-9171b9739dfb8a1ca0bf963c5041d0a801e4aa90.tar.gz
mana-9171b9739dfb8a1ca0bf963c5041d0a801e4aa90.tar.bz2
mana-9171b9739dfb8a1ca0bf963c5041d0a801e4aa90.tar.xz
mana-9171b9739dfb8a1ca0bf963c5041d0a801e4aa90.zip
Being struct/class switch
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index ec796768..c5049418 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -54,10 +54,10 @@ void set_walk(short x_c, short y_c, bool walkable) {
bool get_walk(short x_c, short y_c) {
bool ret = (tiled_map.tiles[x_c][y_c].data[3] & 0x0002)>0;
if (ret == true) {
- std::list<NODE*>::iterator i = beings.begin();
+ std::list<Being *>::iterator i = beings.begin();
while (i != beings.end() && ret == true) {
- NODE *node = (*i);
- if (get_x(node->coordinates)==x_c && get_y(node->coordinates)==y_c)
+ Being *being = (*i);
+ if (being->x==x_c && being->y==y_c)
ret = false;
i++;
}