[Scummvm-tracker] [ScummVM :: Bugs] #13419: SCUMM: FT: Garbled graphics when Ripburger is running away

ScummVM :: Bugs trac at scummvm.org
Sat Apr 16 16:49:57 UTC 2022


#13419: SCUMM: FT: Garbled graphics when Ripburger is running away
----------------------+----------------------------
Reporter:  AndywinXp  |       Owner:  (none)
    Type:  defect     |      Status:  new
Priority:  normal     |   Component:  Engine: SCUMM
 Version:             |  Resolution:
Keywords:             |        Game:  Full Throttle
----------------------+----------------------------
Comment (by eriktorbjorn):

 Here's another maybe-not-a-workaround that could possibly be nearing
 something correct. This keeps drawObject() from modifying od.height. It's
 possible that this will break a lot of other games, but it looks to me
 like those bits are already masked out in most older SCUMM versions.

 I'm not in a position to make that judgment thought.

 {{{
 diff --git a/engines/scumm/object.cpp b/engines/scumm/object.cpp
 index bfcb58b8d53..cbce6bc9aaa 100644
 --- a/engines/scumm/object.cpp
 +++ b/engines/scumm/object.cpp
 @@ -625,7 +625,7 @@ void ScummEngine::drawObject(int obj, int arg) {
         const int ypos = od.y_pos;

         width = od.width / 8;
 -       height = od.height &= 0xFFFFFFF8;       // Mask out last 3 bits
 +       height = od.height;

         // Short circuit for objects which aren't visible at all.
         if (width == 0 || xpos > _screenEndStrip || xpos + width <
 _screenStartStrip)
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13419#comment:8>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list