summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-07 20:59:49 +0200
committer_AG <gennariarmando@outlook.com>2019-07-07 20:59:49 +0200
commit439f371fc346ca797faf013b4098b52c92a1481e (patch)
tree48a1370f82f8afdcf0459864cb0b8aad7e81fe49 /src/control
parentblah (diff)
downloadre3-439f371fc346ca797faf013b4098b52c92a1481e.tar
re3-439f371fc346ca797faf013b4098b52c92a1481e.tar.gz
re3-439f371fc346ca797faf013b4098b52c92a1481e.tar.bz2
re3-439f371fc346ca797faf013b4098b52c92a1481e.tar.lz
re3-439f371fc346ca797faf013b4098b52c92a1481e.tar.xz
re3-439f371fc346ca797faf013b4098b52c92a1481e.tar.zst
re3-439f371fc346ca797faf013b4098b52c92a1481e.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Darkel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Darkel.cpp b/src/control/Darkel.cpp
index ab55c4d4..f050a540 100644
--- a/src/control/Darkel.cpp
+++ b/src/control/Darkel.cpp
@@ -34,7 +34,7 @@ int32 CDarkel::CalcFade(uint32 time, int32 start, uint32 end) {
if (time >= start && time <= end) {
if (time >= start + 500) {
if (time <= end - 500)
- return 0;
+ return 255;
else
return 255 * (end - time) / 500;
}
@@ -55,6 +55,7 @@ void CDarkel::DrawMessages()
switch (Status) {
case KILLFRENZY_ONGOING:
+ assert(pStartMessage != nil);
DisplayTimers = true;
break;
case KILLFRENZY_PASSED: