fix issue #1434 - engulfed gas spore explosion

Issue reported by Umbire:  a gas spore that got swallowed and killed
didn't die but exploded anyway, with the explosion affecting the map
instead of being contained in the swallower.

There was code to handle that but it wasn't being executed.  This fix
feels unclean but seems to work.

I couldn't reproduce the survival of the gas spore but since that
isn't wanted I won't worry about it.

Fixes #1434
This commit is contained in:
PatR
2025-08-05 13:30:17 -07:00
parent 5fe746a0d6
commit 695c6ef3ac
7 changed files with 38 additions and 9 deletions

View File

@@ -604,6 +604,9 @@ struct instance_globals_m {
/* dokick.c */
struct rm *maploc;
/* mhitm.c */
struct monst *mswallower; /* for gas spore explosion when it's swallowed*/
/* mhitu.c */
int mhitu_dieroll;