- took InitializeDefaults out of PClass and moved it to PClassActor.
Like so many other parts, this created a hard dependency of the low level code on very invasive game content.
This commit is contained in:
parent
74c5f83658
commit
f02c5c0a56
8 changed files with 120 additions and 120 deletions
|
|
@ -474,10 +474,11 @@ void LoadActors()
|
|||
I_Error("%d errors while parsing DECORATE scripts", FScriptPosition::ErrorCounter);
|
||||
}
|
||||
FScriptPosition::ResetErrorCounter();
|
||||
|
||||
for (int i = PClassActor::AllActorClasses.Size() - 1; i >= 0; i--)
|
||||
// AllActorClasses hasn'T been set up yet.
|
||||
for (int i = PClass::AllClasses.Size() - 1; i >= 0; i--)
|
||||
{
|
||||
auto ti = PClassActor::AllActorClasses[i];
|
||||
auto ti = (PClassActor*)PClass::AllClasses[i];
|
||||
if (!ti->IsDescendantOf(RUNTIME_CLASS(AActor))) continue;
|
||||
if (ti->Size == TentativeClass)
|
||||
{
|
||||
if (ti->bOptional)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue