Opened 13 months ago

Last modified 12 months ago

#14428 closed defect

XEEN: restrict icons in shops — at Initial Version

Reported by: yarolig Owned by:
Priority: low Component: Engine: MM: Xeen
Version: Keywords:
Cc: Game: Might and Magic: World of Xeen

Description

Right now ScummVM do not shows restricted icons in shops.

Here is how it can be fixed:

--- 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

Change History (0)

Note: See TracTickets for help on using tickets.