- fixed Skulltag rune bugs.

1) When used in a hub, returning to a previous level in the hub deactivated the runes if they were a permanent powerup.
2) When picking up two different runes with the same effect, one rune wearing off removed the effect completely.
3) This entire system was done through an extremely hacky CheatFlags implementation. This was a gross hack, and it was no wonder it didn't always work properly.
This commit is contained in:
Rachael Alexanderson 2017-02-15 10:09:18 -05:00 committed by Christoph Oelckers
commit bd86abede3
4 changed files with 9 additions and 5 deletions

View file

@ -1381,7 +1381,7 @@ void DPSprite::Tick()
Tics--;
// [BC] Apply double firing speed.
if ((Flags & PSPF_POWDOUBLE) && Tics && (Owner->cheats & CF_DOUBLEFIRINGSPEED))
if ((Flags & PSPF_POWDOUBLE) && Tics && (Owner->mo->FindInventory (PClass::FindActor(NAME_PowerDoubleFiringSpeed), true)))
Tics--;
if (!Tics)