[Scummvm-tracker] [ScummVM :: Bugs] #14428: XEEN: restrict icons in shops
ScummVM :: Bugs
trac at scummvm.org
Fri Apr 21 15:58:31 UTC 2023
#14428: XEEN: restrict icons in shops
-------------------------------------------+--------------------------
Reporter: yarolig | Owner: (none)
Type: defect | Status: new
Priority: low | Component: Engine: Xeen
Version: | Keywords:
Game: Might and Magic: World of Xeen |
-------------------------------------------+--------------------------
Right now ScummVM do not shows restricted icons in shops.
Here is how it can be fixed:
{{{#!cpp
--- a/engines/xeen/dialogs/dialogs_items.cpp
+++ b/engines/xeen/dialogs/dialogs_items.cpp
@@ -59,6 +59,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode
mode) {
_oldCharacter = c;
c = &_itemsCharacter;
party._blacksmithWares.blackData2CharData(_itemsCharacter);
+ _itemsCharacter._class = _oldCharacter->_class;
setEquipmentIcons();
} else if (mode == ITEMMODE_ENCHANT) {
_oldCharacter = c;
@@ -312,6 +313,7 @@ Character *ItemsDialog::execute(Character *c,
ItemsMode mode) {
_oldCharacter = newChar;
startingChar = newChar;
c = &_itemsCharacter;
+ _itemsCharacter._class =
_oldCharacter->_class;
} else if (mode == ITEMMODE_SELL
|| mode == ITEMMODE_REPAIR || mode == ITEMMODE_IDENTIFY) {
_oldCharacter = newChar;
startingChar = newChar;
}}}
The patch can be applied to 2-7.
master is not working for me right now because of
https://bugs.scummvm.org/ticket/14426
--
Ticket URL: <https://bugs.scummvm.org/ticket/14428>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list