mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
fix banjo duel crash
svn-id: r6427
This commit is contained in:
@@ -851,6 +851,7 @@ byte Scumm::isMaskActiveAt(int l, int t, int r, int b, byte *mem)
|
||||
void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int h,
|
||||
int stripnr, int numstrip, byte flag)
|
||||
{
|
||||
assert(h > 0);
|
||||
byte *backbuff_ptr, *bgbak_ptr, *smap_ptr;
|
||||
int i;
|
||||
byte *zplane_list[9];
|
||||
|
||||
+1
-1
@@ -356,7 +356,7 @@ void Scumm::drawObject(int obj, int arg)
|
||||
ypos = od->y_pos;
|
||||
|
||||
width = od->width >> 3;
|
||||
height = od->height &= 0xF8; // Ender
|
||||
height = od->height &= 0xFFFFFFF8; // Mask out last 3 bits
|
||||
|
||||
if (width == 0 || xpos > _screenEndStrip || xpos + width < _screenStartStrip)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user