Fix test for water in explore

This led to a bogus message when an interactive explore moved onto a
bridge and got prompted, the bridge was destroyed, and the player
stopped the explore "on the water".
This commit is contained in:
Markus Armbruster 2008-02-22 21:11:30 +01:00
parent 74e873e96c
commit 46ff332ae9

View file

@ -196,7 +196,7 @@ explore(void)
putsect(&sect); putsect(&sect);
return RET_FAIL; return RET_FAIL;
} }
if (chksect.sct_type == '.') { if (chksect.sct_type == SCT_WATER) {
pr("Bridge disappeared!\n"); pr("Bridge disappeared!\n");
getsect(start.sct_x, start.sct_y, &start); getsect(start.sct_x, start.sct_y, &start);
start.sct_flags &= ~MOVE_IN_PROGRESS; start.sct_flags &= ~MOVE_IN_PROGRESS;