mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- try to address some occasional crash with chickens on the bowling lane.
Since this frequently swaps out some actors, it may be advisable to delay destruction by one frame to avoid actor chain consistency issues by writing into the just destroyed object.
This commit is contained in:
parent
a580e9d884
commit
a0c7be9138
1 changed files with 4 additions and 2 deletions
|
@ -2309,7 +2309,8 @@ static int henstand(DDukeActor *actor)
|
|||
if (actor->spr.lotag == 0)
|
||||
{
|
||||
spawn(actor, HEN);
|
||||
actor->Destroy();
|
||||
actor->spr.scale.Zero();
|
||||
ChangeActorStat(actor, STAT_MISC);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@ -2334,7 +2335,8 @@ static int henstand(DDukeActor *actor)
|
|||
if (hitact->spr.picnum == HEN)
|
||||
{
|
||||
auto ns = spawn(hitact, HENSTAND);
|
||||
hitact->Destroy();
|
||||
hitact->spr.scale.Zero();
|
||||
ChangeActorStat(hitact, STAT_MISC);
|
||||
if (ns)
|
||||
{
|
||||
ns->vel.X = 2;
|
||||
|
|
Loading…
Reference in a new issue