[Scummvm-git-logs] scummvm master -> 2ac361782c585a5a0c0d11e12beeab66d651cab5
dreammaster
dreammaster at scummvm.org
Sat Feb 10 01:37:56 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2ac361782c XEEN: Fix experience doubling calculation
Commit: 2ac361782c585a5a0c0d11e12beeab66d651cab5
https://github.com/scummvm/scummvm/commit/2ac361782c585a5a0c0d11e12beeab66d651cab5
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-02-09T19:36:49-05:00
Commit Message:
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
Changed paths:
engines/xeen/combat.cpp
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 1d8b0db..5b82468 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;
}
}
More information about the Scummvm-git-logs
mailing list