Drawbridge collapse bug
From a bug report, it is possible for the hero to appear embedded in the wall after destroying the drawbridge. This is because The variable "lev1", which was the entity's location, was being referenced after e_died, but e_died can change the entity's location. So, as <Someone> suggested, refer to the current location directly.
This commit is contained in:
@@ -105,6 +105,7 @@ busy pet won't miss out upon ascension
|
||||
fix various places that "finally finished" could be displayed after the hero
|
||||
stopped doing something other than eating
|
||||
fix some cases where movement was disallowed but the hero was still conscious
|
||||
after destroying drawbridge, hero could appear to be in the wall
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
@@ -921,7 +921,8 @@ int x,y;
|
||||
killer.format = KILLED_BY_AN;
|
||||
Strcpy(killer.name, "collapsing drawbridge");
|
||||
e_died(etmp1, e_inview? 3 : 2, CRUSHING); /*no corpse*/
|
||||
if(lev1->typ == MOAT) do_entity(etmp1);
|
||||
if(levl[etmp1->ex][etmp1->ey].typ == MOAT)
|
||||
do_entity(etmp1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user