mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
- fixed: The targeter must reset its HUD sprites when being reactivated during the blinking phase.
This commit is contained in:
parent
4496885366
commit
9402bcf6cd
2 changed files with 13 additions and 0 deletions
|
@ -1296,6 +1296,18 @@ void APowerTargeter::InitEffect ()
|
||||||
PositionAccuracy ();
|
PositionAccuracy ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool APowerTargeter::HandlePickup(AInventory *item)
|
||||||
|
{
|
||||||
|
if (Super::HandlePickup(item))
|
||||||
|
{
|
||||||
|
InitEffect(); // reset the HUD sprites
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void APowerTargeter::DoEffect ()
|
void APowerTargeter::DoEffect ()
|
||||||
{
|
{
|
||||||
Super::DoEffect ();
|
Super::DoEffect ();
|
||||||
|
|
|
@ -173,6 +173,7 @@ protected:
|
||||||
void EndEffect ();
|
void EndEffect ();
|
||||||
void PositionAccuracy ();
|
void PositionAccuracy ();
|
||||||
void Travelled ();
|
void Travelled ();
|
||||||
|
bool HandlePickup(AInventory *item);
|
||||||
};
|
};
|
||||||
|
|
||||||
class APowerFrightener : public APowerup
|
class APowerFrightener : public APowerup
|
||||||
|
|
Loading…
Reference in a new issue