taitojc: fix landgear crash, game now enters attract mode [R. Belmont]

This commit is contained in:
R. Belmont 2010-03-13 19:36:47 +00:00
parent af14594f2c
commit 4cac1ecf50

View File

@ -323,9 +323,17 @@ static void render_shade_scan(void *dest, INT32 scanline, const poly_extent *ext
float dz = extent->param[0].dpdx;
float dcolor = extent->param[1].dpdx;
UINT16 *fb = BITMAP_ADDR16(destmap, scanline, 0);
UINT16 *zb = BITMAP_ADDR16(extra->zbuffer, scanline, 0);
UINT16 *zb;
int x;
// avoid crash in landgear/dangcurv
if (!extra->zbuffer)
{
return;
}
zb = BITMAP_ADDR16(extra->zbuffer, scanline, 0);
for (x = extent->startx; x < extent->stopx; x++)
{
int ic = (int)color & 0xffff;