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:
@@ -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