diff options
author | Paul Gilbert | 2018-04-19 21:42:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-19 21:42:38 -0400 |
commit | 94793803106ff2a7e6366b35f223f11715045546 (patch) | |
tree | cf14598869fda7740b0427ce4d26b4a7d9728cb0 /engines/xeen/party.cpp | |
parent | 8d577f491640d8c8589c4b73672c982a46d19089 (diff) | |
download | scummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.tar.gz scummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.tar.bz2 scummvm-rg350-94793803106ff2a7e6366b35f223f11715045546.zip |
XEEN: Changes for Auto Notes for Swords
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 66d1313b82..b6ac558712 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -957,7 +957,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int break; } } else { - if (ps._misc[idx]._material == ((int)takeVal - ACCESSORIES_END)) { + if (ps._misc[idx]._material == (int)(takeVal - ACCESSORIES_END)) { ps._misc[idx].clear(); ps._misc.sort(); found = true; @@ -1435,11 +1435,11 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int _gold += _vm->getRandomNumber(1, giveVal); break; case 103: - assert(giveVal < 128); + assert(giveVal < (uint)(_vm->getGameID() == GType_Swords ? 49 : 128)); _worldFlags[giveVal] = true; break; case 104: - assert(giveVal < 30); + assert(giveVal < (uint)(_vm->getGameID() == GType_Swords ? 60 : 30)); _questFlags[(_vm->getGameID() == GType_Swords ? 0 : files._ccNum * 30) + giveVal] = true; break; case 107: |