mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/GameEvent: Fix game event end time duration overwriting (#30165)
This commit is contained in:
@@ -139,7 +139,7 @@ bool GameEventMgr::StartEvent(uint16 event_id, bool overwrite)
|
||||
{
|
||||
mGameEvent[event_id].start = GameTime::GetGameTime();
|
||||
if (data.end <= data.start)
|
||||
data.end = data.start + data.length;
|
||||
data.end = data.start + data.length * MINUTE;
|
||||
}
|
||||
|
||||
// When event is started, set its worldstate to current time
|
||||
@@ -186,7 +186,7 @@ void GameEventMgr::StopEvent(uint16 event_id, bool overwrite)
|
||||
{
|
||||
data.start = GameTime::GetGameTime() - data.length * MINUTE;
|
||||
if (data.end <= data.start)
|
||||
data.end = data.start + data.length;
|
||||
data.end = data.start + data.length * MINUTE;
|
||||
}
|
||||
else if (serverwide_evt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user