mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Fixed: Possible invalid processing for Crash states that immediately destroy the actor
- Setting an actor's Crash state has the potential to destroy the actor if the Crash state has one or more 0-tic states that end with Stop. This was not taken into account when the object's Z velocity was 0, but it was under the floor anyway.
This commit is contained in:
parent
58ec0e4594
commit
ae14993ba4
1 changed files with 2 additions and 0 deletions
|
@ -3799,6 +3799,8 @@ void AActor::Tick ()
|
|||
else if (Z() <= floorz)
|
||||
{
|
||||
Crash();
|
||||
if (ObjectFlags & OF_EuthanizeMe)
|
||||
return; // actor was destroyed
|
||||
}
|
||||
|
||||
CheckPortalTransition(true);
|
||||
|
|
Loading…
Reference in a new issue