From 8d58c4d33e0e1b3b49ebe30e8e6f388ea5a4024c Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 6 Aug 2002 04:29:11 +0000 Subject: [PATCH] B06010 - lifesaving messages If you fall in the water and drown, you get two "back on solid land" messages, at least sometimes. Guard the 2nd one. --- src/trap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/trap.c b/src/trap.c index fdb5c0032..dbbf986e4 100644 --- a/src/trap.c +++ b/src/trap.c @@ -2708,9 +2708,11 @@ crawl:; pline("You're still drowning."); done(DROWNING); } - u.uinwater = 0; - You("find yourself back %s.", Is_waterlevel(&u.uz) ? + if (u.uinwater) { + u.uinwater = 0; + You("find yourself back %s.", Is_waterlevel(&u.uz) ? "in an air bubble" : "on land"); + } return(TRUE); } @@ -2816,7 +2818,7 @@ struct trap *ttmp; vision_recalc(1); check_leash(u.ux0, u.uy0); if (Punished) move_bc(0, bc, bx, by, cx, cy); - spoteffects(TRUE); /* dotrap() */ + spoteffects(FALSE); /* dotrap() */ exercise(A_WIS, FALSE); } }