XEEN: Fix walking through walls
This commit is contained in:
parent
93e5fd7c20
commit
bdc8e73c1b
1 changed files with 2 additions and 0 deletions
|
@ -923,6 +923,8 @@ bool Interface::checkMoveDirection(int key) {
|
|||
int surfaceId = map.getCell(2);
|
||||
if (surfaceId >= map.mazeData()._difficulties._wallNoPass) {
|
||||
party._mazeDirection = dir;
|
||||
sound.playFX(46);
|
||||
return false;
|
||||
} else {
|
||||
party._mazeDirection = dir;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue