- fixed: Actors moved to STAT_TRAVELLING need to preserve their JUSTSPAWNED flag.

Otherwise freshly spawned inventory items won't call PostBeginPlay.
This commit is contained in:
Christoph Oelckers 2020-09-26 19:37:30 +02:00
parent d304e86354
commit 5c392a220d

View file

@ -82,7 +82,7 @@ void FThinkerCollection::Link(DThinker *thinker, int statnum)
} }
else else
{ {
thinker->ObjectFlags &= ~OF_JustSpawned; if (statnum != STAT_TRAVELLING) thinker->ObjectFlags &= ~OF_JustSpawned;
list = &Thinkers[statnum]; list = &Thinkers[statnum];
} }
list->AddTail(thinker); list->AddTail(thinker);