Darkel is bored.

This commit is contained in:
_AG 2019-07-07 20:59:49 +02:00
parent 0c34fb1bb2
commit 439f371fc3

View File

@ -34,7 +34,7 @@ int32 CDarkel::CalcFade(uint32 time, int32 start, uint32 end) {
if (time >= start && time <= end) { if (time >= start && time <= end) {
if (time >= start + 500) { if (time >= start + 500) {
if (time <= end - 500) if (time <= end - 500)
return 0; return 255;
else else
return 255 * (end - time) / 500; return 255 * (end - time) / 500;
} }
@ -55,6 +55,7 @@ void CDarkel::DrawMessages()
switch (Status) { switch (Status) {
case KILLFRENZY_ONGOING: case KILLFRENZY_ONGOING:
assert(pStartMessage != nil);
DisplayTimers = true; DisplayTimers = true;
break; break;
case KILLFRENZY_PASSED: case KILLFRENZY_PASSED: