Fix illegal override for non virtual int
This commit is contained in:
parent
c49e39b70b
commit
a6e8490cbd
@ -90,26 +90,24 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class DMFAlways_EventHook : public ScriptObject
|
||||
class DMFAlways_EventHook : public GameEventScript
|
||||
{
|
||||
public:
|
||||
DMFAlways_EventHook() : ScriptObject("DMFAlways_EventHook") { }
|
||||
DMFAlways_EventHook() : GameEventScript("DMFAlways_EventHook") { }
|
||||
|
||||
void OnGameEventStart(uint16 eventId) override
|
||||
void OnStart(uint16 eventId) override
|
||||
{
|
||||
if (!sEnabled) return;
|
||||
if (std::find(sEventIds.begin(), sEventIds.end(), eventId) != sEventIds.end())
|
||||
EnsureAll();
|
||||
}
|
||||
|
||||
void OnGameEventStop(uint16 eventId) override
|
||||
void OnStop(uint16 eventId) override
|
||||
{
|
||||
if (!sEnabled) return;
|
||||
if (std::find(sEventIds.begin(), sEventIds.end(), eventId) != sEventIds.end())
|
||||
{
|
||||
ForceStart(eventId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_mod_dmf_always()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user