[Scummvm-tracker] [ScummVM] #10768: QFG4: Torch appears lit when it isn't
Vhati
trac at scummvm.org
Sun Nov 11 23:59:47 CET 2018
#10768: QFG4: Torch appears lit when it isn't
--------------------------------+----------------------------
Reporter: Vhati | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: SCI
Resolution: | Keywords: SCI32 original
Game: Quest for Glory 4 |
--------------------------------+----------------------------
Comment (by Vhati):
Several variables aren't getting reset, in fact.
\\
\\
script 0 - Glory::restart() takes care of some attributes of each item...
{{{
(= temp0 0)
(while (< temp0 57)
((gQGInv at: temp0)
owner: 0
state: 0
amount: 0
maskView: 0
maskLoop: 0
maskCel: 0
)
(++ temp0)
)
}}}
Interactive items sometimes change their loop/cel. Each item has a
constant "mainLoop"/"mainCel" attribute for the default. Or maybe those
volatile attributes can be turned into "maskLoop"/"maskCel".
They also have a "value" (weight) that grows when combined with other
items. This weight will continue to grow with each restart and further
combination. There is no default for value, so each item would need its
own hardcoded reset. Luckily, there are only two such items.
* thePiepan (script 16)
* value, loop, cel
* theTorch (script 35)
* cel
* theBroom (script 35)
* value, cel
Some items dynamically decide "loop"/"cel" based on "status" - which IS
reset - in a custom show() method, so they're fine.
--
Ticket URL: <https://bugs.scummvm.org/ticket/10768#comment:5>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list