[Scummvm-tracker] [ScummVM] #10772: QFG4: Rations icon persists in toolbar after all are eaten
Vhati
trac at scummvm.org
Tue Nov 13 15:50:26 CET 2018
#10772: QFG4: Rations icon persists in toolbar after all are eaten
--------------------------------+----------------------------
Reporter: Vhati | Owner: (none)
Type: defect | Status: new
Priority: low | Component: Engine: SCI
Resolution: | Keywords: SCI32 original
Game: Quest for Glory 4 |
--------------------------------+----------------------------
Comment (by Vhati):
script 28 - hero::use(itemId, amount) both decrements and removes items
properly. A drop-in replacement for that part of the cond block.
{{{
(method (use param1 param2 &tmp temp0 temp1)
(if
(>
(= temp1 (if (== argc 1) 1 else param2))
((global9 at: param1) amount?)
)
(= temp1 ((global9 at: param1) amount?))
)
(self get: param1 (- temp1))
(if (< ((global9 at: param1) amount?) 1)
(global69 curInvIcon: 0 advanceCurIcon:)
(= temp0 (ScriptID 36 1))
(temp0 signal: (| (temp0 signal?) $0008))
(DeleteScreenItem temp0)
)
(return temp1)
)
}}}
--
Ticket URL: <https://bugs.scummvm.org/ticket/10772#comment:3>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list