mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
taitojc: fix landgear crash, game now enters attract mode [R. Belmont]
This commit is contained in:
parent
af14594f2c
commit
4cac1ecf50
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user