- moved OwnedStates and NumOwnedStates out of PClassActor.

This commit is contained in:
Christoph Oelckers 2017-04-11 22:44:35 +02:00
commit 4afe2d4218
11 changed files with 37 additions and 41 deletions

View file

@ -3317,9 +3317,9 @@ DEFINE_ACTION_FUNCTION(AActor, A_SpawnDebris)
{
mo->Translation = self->Translation;
}
if (i < mo->GetClass()->NumOwnedStates)
if (i < mo->GetInfo()->NumOwnedStates)
{
mo->SetState (mo->GetClass()->OwnedStates + i);
mo->SetState (mo->GetInfo()->OwnedStates + i);
}
mo->Vel.X = mult_h * pr_spawndebris.Random2() / 64.;
mo->Vel.Y = mult_h * pr_spawndebris.Random2() / 64.;