[Scummvm-tracker] [ScummVM :: Bugs] #9682: GOB: Goblins Quest 3 - graphic issue on first level

ScummVM :: Bugs trac at scummvm.org
Mon Aug 8 06:04:38 UTC 2022


#9682: GOB: Goblins Quest 3 - graphic issue on first level
-------------------+--------------------------
Reporter:  joshas  |       Owner:  (none)
    Type:  defect  |      Status:  new
Priority:  low     |   Component:  Engine: Gob
 Version:          |  Resolution:
Keywords:          |        Game:  Goblins 3
-------------------+--------------------------
Comment (by digitall):

 Did some investigation since we don't have many active developers for the
 GOB engine.

 The following code should workaround the observed issue and is a good
 start for tracking down the root cause here.

 {{{
 diff --git a/engines/gob/scenery.cpp b/engines/gob/scenery.cpp
 index cd9387c5b2e..5ad835303f2 100644
 --- a/engines/gob/scenery.cpp
 +++ b/engines/gob/scenery.cpp
 @@ -301,6 +301,10 @@ void Scenery::renderStatic(int16 scenery, int16
 layer) {
                         _vm->_draw->_spriteRight   = right - left + 1;
                         _vm->_draw->_spriteBottom  = bottom - top + 1;
                         _vm->_draw->_transparency  = planePtr->transp ? 3
 : 0;
 +                       if (scenery == 1 && layer == 0) {
 +                               debug(1, "plane: %d pieceIndex: %d destX:
 %d destY:%d pictIndex:%d src: %d l:%d t:%d r:%d b:%d", plane, pieceIndex,
 _vm->_draw->_destSpriteX, _vm->_draw->_destSpriteY, pictIndex,
 _vm->_draw->_sourceSurface, _vm->_draw->_spriteLeft,
 _vm->_draw->_spriteTop, _vm->_draw->_spriteRight,
 _vm->_draw->_spriteBottom);
 +                               if (pieceIndex == 2 &&
 _vm->_draw->_destSpriteX == 455) continue;
 +                       }
                         _vm->_draw->spriteOperation(DRAW_BLITSURF);
                 }
         }

 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/9682#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list