[Scummvm-git-logs] scummvm master -> 38a25cc5219c565f850fe30b2fc18f78b43c4499
athrxx
noreply at scummvm.org
Thu Nov 21 23:10:46 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:
38a25cc521 KYRA: (EOB) - fix Ring of Wizardry effect
Commit: 38a25cc5219c565f850fe30b2fc18f78b43c4499
https://github.com/scummvm/scummvm/commit/38a25cc5219c565f850fe30b2fc18f78b43c4499
Author: athrxx (athrxx at scummvm.org)
Date: 2024-11-22T00:10:00+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