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.
This commit is contained in:
cohrs
2002-08-06 04:29:11 +00:00
parent 00653d2f9a
commit 8d58c4d33e

View File

@@ -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);
}
}