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