diff options
Diffstat (limited to 'src/map/magic-stmt.cpp')
-rw-r--r-- | src/map/magic-stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/magic-stmt.cpp b/src/map/magic-stmt.cpp index c729cfd..8058310 100644 --- a/src/map/magic-stmt.cpp +++ b/src/map/magic-stmt.cpp @@ -480,7 +480,7 @@ int op_move(env_t *, int, val_t *args) int newx = subject->x + dirx[dir]; int newy = subject->y + diry[dir]; - if (!map_is_solid(subject->m, newx, newy)) + if (!bool(map_getcell(subject->m, newx, newy) & MapCell::UNWALKABLE)) entity_warp(subject, subject->m, newx, newy); return 0; |