- fixed: APowerupGiver::PowerupType also needs replacement handling for placeholder classes.
This commit is contained in:
parent
3358181f18
commit
bc616dbf06
5 changed files with 27 additions and 3 deletions
|
|
@ -42,6 +42,18 @@ IMPLEMENT_CLASS (APowerup)
|
|||
|
||||
// Powerup-Giver -------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_CLASS(PClassPowerupGiver)
|
||||
|
||||
void PClassPowerupGiver::ReplaceClassRef(PClass *oldclass, PClass *newclass)
|
||||
{
|
||||
Super::ReplaceClassRef(oldclass, newclass);
|
||||
APowerupGiver *def = (APowerupGiver*)Defaults;
|
||||
if (def != NULL)
|
||||
{
|
||||
if (def->PowerupType == oldclass) def->PowerupType = static_cast<PClassWeapon *>(newclass);
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APowerupGiver :: Use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue