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:
PatR
2023-05-11 12:12:12 -07:00
parent 56f0340f0c
commit 7737fcc97c
3 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 do.c $NHDT-Date: 1652831519 2022/05/17 23:51:59 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.304 $ */
/* NetHack 3.7 do.c $NHDT-Date: 1683832317 2023/05/11 19:11:57 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.352 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Derek S. Ray, 2015. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1466,7 +1466,7 @@ goto_level(
gc.context.mysteryforce += rn2(diff + 2); /* L:0-4, N:0-3, C:0-2 */
if (on_level(newlevel, &u.uz)) {
(void) safe_teleds(FALSE);
(void) safe_teleds(TELEDS_NO_FLAGS);
(void) next_to_u();
return;
}

View File

@@ -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

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 region.c $NHDT-Date: 1596498203 2020/08/03 23:43:23 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.65 $ */
/* NetHack 3.7 region.c $NHDT-Date: 1683832331 2023/05/11 19:12:11 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.81 $ */
/* Copyright (c) 1996 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */
@@ -1229,7 +1229,7 @@ region_safety(void)
if (n > 1 || (n == 1 && !r)) {
/* multiple overlapping cloud regions or non-expiring one */
safe_teleds(FALSE);
safe_teleds(TELEDS_NO_FLAGS);
} else if (r) {
remove_region(r);
pline_The("gas cloud enveloping you dissipates.");