]> git.pond.sub.org Git - empserver/commitdiff
Fix test for water in explore
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 22 Feb 2008 20:11:30 +0000 (21:11 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 25 Feb 2008 20:50:24 +0000 (21:50 +0100)
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".

src/lib/commands/expl.c

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