feedback when escaping lava

Fix the duplicate feedback given when landing on one or more items
after teleporting out of lava.

This also avoids "you find yourself back on solid water" if you are
able to survive at a water location and safe_teleds() puts you on one.
This commit is contained in:
PatR
2023-03-27 17:08:18 -07:00
parent 2855f71764
commit 0532eae7d2
3 changed files with 34 additions and 4 deletions

View File

@@ -2852,6 +2852,10 @@ spoteffects(boolean pick)
/* or transformed trap (land mine -> pit) */
&& (!spottrap || !trap || trap->ttyp == spottraptyp))
return;
/* when float_down() puts hero into lava and she teleports out,
defer spoteffects() until after "you are back on solid <surface>" */
if (iflags.in_lava_effects)
return;
++inspoteffects;
spotterrain = levl[u.ux][u.uy].typ;