aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-02-09 19:36:49 -0500
committerPaul Gilbert2018-02-09 19:36:49 -0500
commit2ac361782c585a5a0c0d11e12beeab66d651cab5 (patch)
treed83aff2478e49c44ab939e415d8a825ee89e1614
parent549b90481acf1f252ef05014df42372fc703f54b (diff)
downloadscummvm-rg350-2ac361782c585a5a0c0d11e12beeab66d651cab5.tar.gz
scummvm-rg350-2ac361782c585a5a0c0d11e12beeab66d651cab5.tar.bz2
scummvm-rg350-2ac361782c585a5a0c0d11e12beeab66d651cab5.zip
XEEN: Fix experience doubling calculation
Thanks to dtgreene in the GOG forums for pointing out the incorrect calculation, and that it isn't present in Clouds of Xeen only
-rw-r--r--engines/xeen/combat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 1d8b0db39b..5b82468d1a 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -1810,8 +1810,8 @@ void Combat::giveExperience(int experience) {
++count;
} else {
int exp = experience / count;
- if (c._level._permanent < 15)
- exp /= 2;
+ if (c._level._permanent < 15 && _vm->getGameID() != GType_Clouds)
+ exp *= 2;
c._experience += exp;
}
}