\#wizkill fix
When running #wizkill, if hero was swallowed and you killed the engulfer and that dropped hero onto a level teleporter, the targetting loop for selecting the next monster to kill kept going after changing to another level. Terminate #wizkill if killing something sends you to a different level. Not fixed, and an old bug, or variation of one: the cursor got positioned at the coordinates of your spot on the prior level even though the part of the new level where you actually arrived was displayed. The hack.c and trap.c bits are just reformatting.
This commit is contained in:
10
src/hack.c
10
src/hack.c
@@ -2702,7 +2702,8 @@ set_uinwater(int in_out)
|
||||
leaving a pool of water/lava, and by moveloop to check for staying on one;
|
||||
returns true to skip rest of spoteffects */
|
||||
boolean
|
||||
pooleffects(boolean newspot) /* true if called by spoteffects */
|
||||
pooleffects(
|
||||
boolean newspot) /* true if called by spoteffects */
|
||||
{
|
||||
/* check for leaving water */
|
||||
if (u.uinwater) {
|
||||
@@ -2848,10 +2849,9 @@ spoteffects(boolean pick)
|
||||
/*
|
||||
* dotrap on a fire trap calls melt_ice() which triggers
|
||||
* spoteffects() (again) which can trigger the same fire
|
||||
* trap (again). Use static spottrap to prevent that.
|
||||
* We track spottraptyp because some traps morph
|
||||
* (landmine to pit) and any new trap type
|
||||
* should get triggered.
|
||||
* trap (again). Use static spottrap to prevent that.
|
||||
* We track spottraptyp because some traps morph (landmine
|
||||
* to pit) and any new trap type should get triggered.
|
||||
*/
|
||||
if (!spottrap || spottraptyp != trap->ttyp) {
|
||||
spottrap = trap;
|
||||
|
||||
Reference in New Issue
Block a user