- fixed: Dehacked did not copy the defaults for DehackedPickup replacements anymore.

This commit is contained in:
Christoph Oelckers 2016-12-02 01:33:18 +01:00
parent 4dd22d74dd
commit 05cc3dde72
2 changed files with 2 additions and 0 deletions

View file

@ -3020,6 +3020,7 @@ void FinishDehPatch ()
while (subclass == nullptr); while (subclass == nullptr);
AActor *defaults2 = GetDefaultByType (subclass); AActor *defaults2 = GetDefaultByType (subclass);
memcpy ((void *)defaults2, (void *)defaults1, sizeof(AActor));
// Make a copy of the replaced class's state labels // Make a copy of the replaced class's state labels
FStateDefinitions statedef; FStateDefinitions statedef;

View file

@ -7913,5 +7913,6 @@ void PrintMiscActorInfo(AActor *query)
query->floorz, query->ceilingz); query->floorz, query->ceilingz);
Printf("\nSpeed= %f, velocity= x:%f, y:%f, z:%f, combined:%f.\n", Printf("\nSpeed= %f, velocity= x:%f, y:%f, z:%f, combined:%f.\n",
query->Speed, query->Vel.X, query->Vel.Y, query->Vel.Z, query->Vel.Length()); query->Speed, query->Vel.X, query->Vel.Y, query->Vel.Z, query->Vel.Length());
Printf("Scale: x:%f, y:%f\n", query->Scale.X, query->Scale.Y);
} }
} }