diff options
author | Florian Kagerer | 2009-07-08 21:12:03 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-07-08 21:12:03 +0000 |
commit | c7eedb573ac3ac1bd4c8f8e64d75ee8ee931bc50 (patch) | |
tree | 3f384d509139381644ca9b0b208abeae95564a9b | |
parent | a212a9da7e28b476ec2d8417e54c9adf9a551291 (diff) | |
download | scummvm-rg350-c7eedb573ac3ac1bd4c8f8e64d75ee8ee931bc50.tar.gz scummvm-rg350-c7eedb573ac3ac1bd4c8f8e64d75ee8ee931bc50.tar.bz2 scummvm-rg350-c7eedb573ac3ac1bd4c8f8e64d75ee8ee931bc50.zip |
LOL: cleanup
svn-id: r42271
-rw-r--r-- | engines/kyra/lol.cpp | 4 | ||||
-rw-r--r-- | engines/kyra/timer_lol.cpp | 2 |
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; } } } |