mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 23:54:35 +00:00
- fixed: When the SectorAction's TriggerAction method was renamed, the inherited one in the MusicChanger was overlooked. (Bit thanks to the C++ specs for allowing to override a non-virtual method with a virtual one without even showing a warning...)
This commit is contained in:
parent
cbf72fe992
commit
f92cdb0ce7
1 changed files with 3 additions and 3 deletions
|
@ -2347,14 +2347,14 @@ class AMusicChanger : public ASectorAction
|
||||||
{
|
{
|
||||||
DECLARE_CLASS (AMusicChanger, ASectorAction)
|
DECLARE_CLASS (AMusicChanger, ASectorAction)
|
||||||
public:
|
public:
|
||||||
virtual bool TriggerAction (AActor *triggerer, int activationType);
|
virtual bool DoTriggerAction (AActor *triggerer, int activationType);
|
||||||
virtual void Tick();
|
virtual void Tick();
|
||||||
virtual void PostBeginPlay();
|
virtual void PostBeginPlay();
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_CLASS(AMusicChanger)
|
IMPLEMENT_CLASS(AMusicChanger)
|
||||||
|
|
||||||
bool AMusicChanger::TriggerAction (AActor *triggerer, int activationType)
|
bool AMusicChanger::DoTriggerAction (AActor *triggerer, int activationType)
|
||||||
{
|
{
|
||||||
if (activationType & SECSPAC_Enter)
|
if (activationType & SECSPAC_Enter)
|
||||||
{
|
{
|
||||||
|
@ -2364,7 +2364,7 @@ bool AMusicChanger::TriggerAction (AActor *triggerer, int activationType)
|
||||||
reactiontime = 30;
|
reactiontime = 30;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Super::TriggerAction (triggerer, activationType);
|
return Super::DoTriggerAction (triggerer, activationType);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMusicChanger::Tick()
|
void AMusicChanger::Tick()
|
||||||
|
|
Loading…
Reference in a new issue