aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2019-03-02 00:07:13 +0100
committerathrxx2019-03-06 20:48:28 +0100
commit3fccab8f929dedb0d918e09feaccfbe1e2714ba4 (patch)
treeccac7e0a5e9e17b280ea31f7ed1fe9bb93b64de6
parent83f104491528a6a7c92cf017c53a56793fc213e0 (diff)
downloadscummvm-rg350-3fccab8f929dedb0d918e09feaccfbe1e2714ba4.tar.gz
scummvm-rg350-3fccab8f929dedb0d918e09feaccfbe1e2714ba4.tar.bz2
scummvm-rg350-3fccab8f929dedb0d918e09feaccfbe1e2714ba4.zip
KYRA: (EOB1) - fix turn undead spell in level 7
-rw-r--r--engines/kyra/engine/eobcommon.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/kyra/engine/eobcommon.cpp b/engines/kyra/engine/eobcommon.cpp
index 0efaab838a..c2ce853380 100644
--- a/engines/kyra/engine/eobcommon.cpp
+++ b/engines/kyra/engine/eobcommon.cpp
@@ -687,11 +687,11 @@ void EoBCoreEngine::runLoop() {
if (_sceneUpdateRequired)
drawScene(1);
- if (_envAudioTimer >= _system->getMillis() || (_flags.gameID == GI_EOB1 && (_currentLevel == 0 || _currentLevel > 3)))
- continue;
+ if (_envAudioTimer < _system->getMillis() && !(_flags.gameID == GI_EOB1 && (_flags.platform == Common::kPlatformAmiga || _currentLevel == 0 || _currentLevel > 3))) {
+ _envAudioTimer = _system->getMillis() + (rollDice(1, 10, 3) * 18 * _tickLength);
+ snd_processEnvironmentalSoundEffect(_flags.gameID == GI_EOB1 ? 30 : (rollDice(1, 2, -1) ? 27 : 28), _currentBlock + rollDice(1, 12, -1));
+ }
- _envAudioTimer = _system->getMillis() + (rollDice(1, 10, 3) * 18 * _tickLength);
- snd_processEnvironmentalSoundEffect(_flags.gameID == GI_EOB1 ? 30 : (rollDice(1, 2, -1) ? 27 : 28), _currentBlock + rollDice(1, 12, -1));
updateEnvironmentalSfx(0);
turnUndeadAuto();
}
@@ -1503,7 +1503,7 @@ void EoBCoreEngine::increasePartyExperience(int16 points) {
void EoBCoreEngine::increaseCharacterExperience(int charIndex, int32 points) {
int cl = _characters[charIndex].cClass;
points /= _numLevelsPerClass[cl];
-
+
for (int i = 0; i < 3; i++) {
if (getCharacterClassType(cl, i) == -1)
continue;