- moved OwnedStates and NumOwnedStates out of PClassActor.
This commit is contained in:
parent
05240ccbe5
commit
4afe2d4218
11 changed files with 37 additions and 41 deletions
|
|
@ -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.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue