[Scummvm-tracker] [ScummVM :: Bugs] #14428: XEEN: restrict icons in shops
ScummVM :: Bugs
trac at scummvm.org
Mon May 8 12:24:01 UTC 2023
#14428: XEEN: restrict icons in shops
--------------------+---------------------------------------------
Reporter: yarolig | Owner: (none)
Type: defect | Status: new
Priority: low | Component: Engine: Xeen
Version: | Resolution:
Keywords: | Game: Might and Magic: World of Xeen
--------------------+---------------------------------------------
Description changed by yarolig:
Old description:
> 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
New description:
Right now ScummVM do not shows restricted icons in shops.
You can see that a mage refuses to use swords or plate mail in your
inventory. But can't in shops while buying items.
I fixed it. Pull request for master:
https://github.com/scummvm/scummvm/pull/4994
--
--
Ticket URL: <https://bugs.scummvm.org/ticket/14428#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list