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
This commit is contained in:
Paul Gilbert 2018-02-09 19:36:49 -05:00
parent 549b90481a
commit 2ac361782c

View File

@ -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;
}
}