Changes between Initial Version and Version 1 of Ticket #14428


Ignore:
Timestamp:
May 8, 2023, 12:24:01 PM (18 months ago)
Author:
yarolig
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14428 – Description

    initial v1  
    11Right now ScummVM do not shows restricted icons in shops.
     2You can see that a mage refuses to use swords or plate mail in your inventory. But can't in shops while buying items.
    23
    3 Here is how it can be fixed:
    4 
    5 {{{#!cpp
    6 --- a/engines/xeen/dialogs/dialogs_items.cpp
    7 +++ b/engines/xeen/dialogs/dialogs_items.cpp
    8 @@ -59,6 +59,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
    9                 _oldCharacter = c;
    10                 c = &_itemsCharacter;
    11                 party._blacksmithWares.blackData2CharData(_itemsCharacter);
    12 +               _itemsCharacter._class = _oldCharacter->_class;
    13                 setEquipmentIcons();
    14         } else if (mode == ITEMMODE_ENCHANT) {
    15                 _oldCharacter = c;
    16 @@ -312,6 +313,7 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
    17                                                 _oldCharacter = newChar;
    18                                                 startingChar = newChar;
    19                                                 c = &_itemsCharacter;
    20 +                                               _itemsCharacter._class = _oldCharacter->_class;
    21                                         } else if (mode == ITEMMODE_SELL || mode == ITEMMODE_REPAIR || mode == ITEMMODE_IDENTIFY) {
    22                                                 _oldCharacter = newChar;
    23                                                 startingChar = newChar;
    24 }}}
    25 
    26 
    27 The patch can be applied to 2-7.
    28 master is not working for me right now because of https://bugs.scummvm.org/ticket/14426
     4I fixed it. Pull request for master: https://github.com/scummvm/scummvm/pull/4994