aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/magic_eob.cpp
diff options
context:
space:
mode:
authorathrxx2011-11-28 18:44:40 +0100
committerJohannes Schickel2011-12-26 16:18:15 +0100
commitaac7e16afa8546232a27754c6928cd43cd6ba876 (patch)
tree6a8ffc704b3d158e211a482564b379c131d64717 /engines/kyra/magic_eob.cpp
parent49c111f8ca4a822ce98c81a9162899d3d1e4e6b2 (diff)
downloadscummvm-rg350-aac7e16afa8546232a27754c6928cd43cd6ba876.tar.gz
scummvm-rg350-aac7e16afa8546232a27754c6928cd43cd6ba876.tar.bz2
scummvm-rg350-aac7e16afa8546232a27754c6928cd43cd6ba876.zip
KYRA: (EOB) - fix some more bugs
- wrong usage of static array which caused issues when restarting after RTL - portability issue with dialog labels - (original code) bug in hold person spell
Diffstat (limited to 'engines/kyra/magic_eob.cpp')
-rw-r--r--engines/kyra/magic_eob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/magic_eob.cpp b/engines/kyra/magic_eob.cpp
index b70058d7ff..21bb10a1de 100644
--- a/engines/kyra/magic_eob.cpp
+++ b/engines/kyra/magic_eob.cpp
@@ -919,7 +919,7 @@ bool EobCoreEngine::spellCallback_end_holdPerson(void *obj) {
if (_flags.gameID == GI_EOB2 && fo->curBlock == _currentBlock) {
// party hit
int numChar = rollDice(1, 4, 0);
- int charIndex = rollDice(1, 6, 0);
+ int charIndex = rollDice(1, 6, -1);
for (int i = 0; i < 6 && numChar; i++) {
if (testCharacter(charIndex, 3)) {
statusAttack(charIndex, 4, _magicStrings8[1], 4, 5, 9, 1);
@@ -1010,7 +1010,7 @@ void EobCoreEngine::spellCallback_start_removeCurse() {
}
void EobCoreEngine::spellCallback_start_coneOfCold() {
- static const int8 *dirTables[] = { _coneOfColdDest1, _coneOfColdDest2, _coneOfColdDest3, _coneOfColdDest4 };
+ const int8 *dirTables[] = { _coneOfColdDest1, _coneOfColdDest2, _coneOfColdDest3, _coneOfColdDest4 };
int cl = getMageLevel(_openBookChar);