diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-13 22:44:39 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-13 22:44:39 +0300 |
commit | 26c8c56623c50eb534c9c2ab7082158b00f618f8 (patch) | |
tree | 273ab785a7a8bb0c6d5ef6585546cc736ed52f85 | |
parent | 8d4cceb2e4bc8947f260e6c029c78b71ff94bfea (diff) |
Fixed unsigned time check in CDarkel
-rw-r--r-- | src/control/Darkel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Darkel.cpp b/src/control/Darkel.cpp index 915e280a..50ff39a2 100644 --- a/src/control/Darkel.cpp +++ b/src/control/Darkel.cpp @@ -282,7 +282,7 @@ CDarkel::Update() return; int32 FrameTime = TimeLimit - (CTimer::GetTimeInMilliseconds() - TimeOfFrenzyStart); - if ((TimeLimit - (CTimer::GetTimeInMilliseconds() - TimeOfFrenzyStart)) > 0 || TimeLimit < 0) { + if (FrameTime > 0 || TimeLimit < 0) { DMAudio.PlayFrontEndSound(SOUND_RAMPAGE_ONGOING, FrameTime); |