[Scummvm-tracker] [ScummVM :: Bugs] #10836: SHERLOCK: Scalpel - inventory glitch

ScummVM :: Bugs trac at scummvm.org
Tue Nov 23 10:40:06 UTC 2021


#10836: SHERLOCK: Scalpel - inventory glitch
-------------------------+-------------------------------------------------
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):

 It seems to have something to do with the engine calling
 drawInventory(INVENTORY_DONT_DISPLAY), so that only the inventory
 graphics, not the objects, are redrawn.

 I can work around it with this:

 {{{
 diff --git a/engines/sherlock/scalpel/scalpel_inventory.cpp
 b/engines/sherlock/scalpel/scalpel_inventory.cpp
 index 07659b41f2..3cf130e406 100644
 --- a/engines/sherlock/scalpel/scalpel_inventory.cpp
 +++ b/engines/sherlock/scalpel/scalpel_inventory.cpp
 @@ -116,7 +116,10 @@ void ScalpelInventory::drawInventory(InvNewMode mode)
 {
         }

         invCommands(0);
 -       putInv(SLAM_DONT_DISPLAY);
 +       if (tempMode == INVENTORY_DONT_DISPLAY)
 +               putInv(SLAM_SECONDARY_BUFFER);
 +       else
 +               putInv(SLAM_DONT_DISPLAY);

         if (tempMode != INVENTORY_DONT_DISPLAY) {
                 if (!ui._slideWindows) {
 }}}

 But I don't know enough about the engine to say if that's even close to a
 real solution.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/10836#comment:3>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list