02825: crossbow: Crash on "Crossing Bridge" stage

This commit is contained in:
Aaron Giles 2009-02-26 08:14:16 +00:00
parent 9f36ff49d4
commit b6796bea1f

View File

@ -366,7 +366,7 @@ static void draw_sprites(const device_config *screen, bitmap_t *bitmap, const re
int pen; int pen;
/* left pixel */ /* left pixel */
if (left && HBEND >= 0 && currx < HBSTART) if (left && currx >= HBEND && currx < HBSTART)
{ {
/* combine with the background */ /* combine with the background */
pen = left | old[0]; pen = left | old[0];
@ -379,7 +379,7 @@ static void draw_sprites(const device_config *screen, bitmap_t *bitmap, const re
currx++; currx++;
/* right pixel */ /* right pixel */
if (right && HBEND >= 0 && currx < HBSTART) if (right && currx >= HBEND && currx < HBSTART)
{ {
/* combine with the background */ /* combine with the background */
pen = right | old[1]; pen = right | old[1];