fix out of date safe_teleds() calls
When safe_teleds() was changed to take an int flags argument instead of a boolean, some calls weren't updated.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 pray.c $NHDT-Date: 1649454525 2022/04/08 21:48:45 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.168 $ */
|
||||
/* NetHack 3.7 pray.c $NHDT-Date: 1683832328 2023/05/11 19:12:08 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.193 $ */
|
||||
/* Copyright (c) Benson I. Margulies, Mike Stephenson, Steve Linhart, 1989. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -385,7 +385,7 @@ fix_worst_trouble(int trouble)
|
||||
case TROUBLE_LAVA:
|
||||
You("are back on solid ground.");
|
||||
/* teleport should always succeed, but if not, just untrap them */
|
||||
if (!safe_teleds(FALSE))
|
||||
if (!safe_teleds(TELEDS_NO_FLAGS))
|
||||
reset_utrap(TRUE);
|
||||
break;
|
||||
case TROUBLE_STARVING:
|
||||
@@ -446,7 +446,7 @@ fix_worst_trouble(int trouble)
|
||||
break;
|
||||
case TROUBLE_STUCK_IN_WALL:
|
||||
/* no control, but works on no-teleport levels */
|
||||
if (safe_teleds(FALSE)) {
|
||||
if (safe_teleds(TELEDS_NO_FLAGS)) {
|
||||
Your("surroundings change.");
|
||||
} else {
|
||||
/* safe_teleds() couldn't find a safe place; perhaps the
|
||||
|
||||
Reference in New Issue
Block a user