- Fixed: When a DehackedPickup replacement object is created it must copy

the state labels of the parent object.


SVN r410 (trunk)
This commit is contained in:
Christoph Oelckers 2006-12-11 11:18:04 +00:00
parent 88812ed0f5
commit e55e4f0932
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
December 10, 2006 (Changes by Graf Zahl)
- Fixed: When a DehackedPickup replacement object is created it must copy
the state labels of the parent object.
December 9, 2006 (Changes by Graf Zahl)
- Fixed: P_LookForTid should abort its search when it discovers that it has
cycled through the entire list of actors.

View File

@ -2581,6 +2581,9 @@ void FinishDehPatch ()
subclass->ActorInfo->GameFilter = type->ActorInfo->GameFilter;
subclass->ActorInfo->SpawnID = type->ActorInfo->SpawnID;
subclass->ActorInfo->DoomEdNum = type->ActorInfo->DoomEdNum;
// Make a copy the state labels
MakeStateDefines(type->ActorInfo->StateList);
InstallStates(subclass->ActorInfo, defaults2);
// Alter the original class so that it just spawns the new one
//memcpy (defaults1, GetDefault<AActor>(), sizeof(AActor));