aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/lol.cpp4
-rw-r--r--engines/kyra/timer_lol.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 33ba2bff7e..f2617dc8b4 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -1080,7 +1080,7 @@ bool LoLEngine::addCharacter(int id) {
loadCharFaceShapes(numChars, id);
- _characters[numChars].nextAnimUpdateCountdown = (int16) rollDice(1, 12) + 6;
+ _characters[numChars].nextAnimUpdateCountdown = rollDice(1, 12) + 6;
for (i = 0; i < 11; i++) {
if (_characters[numChars].items[i]) {
@@ -3609,7 +3609,7 @@ int LoLEngine::paralyzePoisonCharacter(int charNum, int typeFlag, int immunityFl
if (!(_characters[charNum].flags & 1) || (_characters[charNum].flags & immunityFlags))
return 0;
- if ((int)rollDice(1, 100) > hitChance)
+ if (rollDice(1, 100) > hitChance)
return 0;
int r = 0;
diff --git a/engines/kyra/timer_lol.cpp b/engines/kyra/timer_lol.cpp
index fb3a7c2565..0e43487217 100644
--- a/engines/kyra/timer_lol.cpp
+++ b/engines/kyra/timer_lol.cpp
@@ -241,7 +241,7 @@ void LoLEngine::timerUpdatePortraitAnimations(int skipUpdate) {
} else {
_characters[i].curFaceFrame = 0;
gui_drawCharPortraitWithStats(i);
- _characters[i].nextAnimUpdateCountdown = (int16) rollDice(1, 12) + 6;
+ _characters[i].nextAnimUpdateCountdown = rollDice(1, 12) + 6;
}
}
}