summaryrefslogtreecommitdiffstats
path: root/src/control/Darkel.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-10-13 23:44:48 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-10-13 23:44:48 +0200
commitf93285df7960b75f616d9bbdb364e113714151ee (patch)
treeafa425c6f56716ff4d610e2ed9497996c1fe9d06 /src/control/Darkel.cpp
parentcopypaste error (diff)
parentMerge pull request #243 from erorcun/erorcun (diff)
downloadre3-f93285df7960b75f616d9bbdb364e113714151ee.tar
re3-f93285df7960b75f616d9bbdb364e113714151ee.tar.gz
re3-f93285df7960b75f616d9bbdb364e113714151ee.tar.bz2
re3-f93285df7960b75f616d9bbdb364e113714151ee.tar.lz
re3-f93285df7960b75f616d9bbdb364e113714151ee.tar.xz
re3-f93285df7960b75f616d9bbdb364e113714151ee.tar.zst
re3-f93285df7960b75f616d9bbdb364e113714151ee.zip
Diffstat (limited to 'src/control/Darkel.cpp')
-rw-r--r--src/control/Darkel.cpp2
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);