[Scummvm-tracker] [ScummVM :: Bugs] #10841: SHERLOCK: Scalpel inventory not updated when item is added

ScummVM :: Bugs trac at scummvm.org
Tue Dec 7 19:35:23 UTC 2021


#10841: SHERLOCK: Scalpel inventory not updated when item is added
-------------------------+-------------------------------------------------
Reporter:  eriktorbjorn  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  normal        |   Component:  Engine: Sherlock
 Version:                |  Resolution:
Keywords:                |        Game:  Sherlock Holmes: Case of the
                         |  Serrated Scalpel
-------------------------+-------------------------------------------------
Comment (by eriktorbjorn):

 One small observation: The problem goes away if I remove the call to
 ui.banishWindow() from line 443 in talk.cpp. This is the last call to
 ui.banishWindow() in Talk::talkTo().

 What seems to be happening is that the object is added to your inventory.
 This happens because Talk::talkTo() calls
 _vm->setFlags(statement._modified[idx]). This flag is then checked by
 Scene::setSceneFlags().

 Then the inventory window is closed twice, for some reason. And the first
 time is before the engine has had the time to redraw the inventory on the
 second back buffer.

 However, I don't think removing that banishWindow() call is the correct
 solution.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/10841#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list