[Scummvm-git-logs] scummvm branch-2-9 -> b85952d75864e03d0573f0d6945ef9c850b2df5a
athrxx
noreply at scummvm.org
Thu Nov 21 23:13:48 UTC 2024
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:
b85952d758 KYRA: (EOB) - fix Ring of Wizardry effect
Commit: b85952d75864e03d0573f0d6945ef9c850b2df5a
https://github.com/scummvm/scummvm/commit/b85952d75864e03d0573f0d6945ef9c850b2df5a
Author: athrxx (athrxx at scummvm.org)
Date: 2024-11-22T00:11:19+01:00
Commit Message:
KYRA: (EOB) - fix Ring of Wizardry effect
Changed paths:
engines/kyra/gui/gui_eob.cpp
diff --git a/engines/kyra/gui/gui_eob.cpp b/engines/kyra/gui/gui_eob.cpp
index 2c4522cf43b..cc88be56fdf 100644
--- a/engines/kyra/gui/gui_eob.cpp
+++ b/engines/kyra/gui/gui_eob.cpp
@@ -3585,20 +3585,16 @@ void GUI_EoB::runMemorizePrayMenu(int charIndex, int spellType) {
} else {
li = _vm->getCharacterLevelIndex(1, c->cClass);
-
- if (li == -1) {
- if (_vm->checkInventoryForRings(charIndex, 1)) {
- np[3] <<= 1;
- np[4] <<= 1;
- }
-
- } else {
+ if (li != -1) {
lv = c->level[li] - 1;
for (int i = 0; i < _numPages; i++)
np[i] = _vm->_numSpellsMage[lv * _numPages + i];
-
avltyFlags = c->mageSpellsAvailableFlags;
}
+ if (_vm->checkInventoryForRings(charIndex, 1)) {
+ np[3] <<= 1;
+ np[4] <<= 1;
+ }
}
int8 *menuSpellMap = new int8[88]();
More information about the Scummvm-git-logs
mailing list