fix #6598 - monster briefly rendered as hero
When swapping places with a pet, the hero's coordinates are changed before some tests which might disallow the swap, and if the pet was a hidden mimic or was trapped and became untame, the attempt to draw the revised pet or former pet would actually draw the hero and have that mistake be visible during the message about not swapping. That last bit only occurred when the pet couldn't move diagonally (due to being a grid bug or to being unable to squeeze through a tight space). Also, spoteffects for arriving at a new location took place even though the hero hadn't changed position.
This commit is contained in:
@@ -478,6 +478,12 @@ monster holding hero takes double damage from an explosion for reaching into
|
||||
or beyond the explosion radius
|
||||
poly'd hero holding monster now takes double damage (if monster is within
|
||||
explosion radious) instead of inflicting that upon the monster
|
||||
when trying to swap places with a pet and failing due to pet being unable
|
||||
to move diagonally to hero's spot (grid bug or too tight squeeze), if
|
||||
pet became untame the map would briefly show hero at pet's location
|
||||
when trying to swap places with a pet and failing due to pet being trapped
|
||||
or disallowed diagonal move, the arrive-on-new-spot code (autopickup,
|
||||
trap triggering) executed even though hero didn't ultimately move
|
||||
|
||||
|
||||
Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user