- fixed: The targeter must reset its HUD sprites when being reactivated during the blinking phase.

This commit is contained in:
Christoph Oelckers 2014-10-24 22:47:40 +02:00
parent 4496885366
commit 9402bcf6cd
2 changed files with 13 additions and 0 deletions

View file

@ -1296,6 +1296,18 @@ void APowerTargeter::InitEffect ()
PositionAccuracy ();
}
bool APowerTargeter::HandlePickup(AInventory *item)
{
if (Super::HandlePickup(item))
{
InitEffect(); // reset the HUD sprites
return true;
}
return false;
}
void APowerTargeter::DoEffect ()
{
Super::DoEffect ();

View file

@ -173,6 +173,7 @@ protected:
void EndEffect ();
void PositionAccuracy ();
void Travelled ();
bool HandlePickup(AInventory *item);
};
class APowerFrightener : public APowerup