summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2009-03-05 22:33:07 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2009-03-05 22:33:07 +0000
commit4b4228dfe2a2cfb9bb819a9c436410bf464e5981 (patch)
treecb5c63d34e4c0513ee6579ab57d5345424cba473
parent7f889fdd37b30d3437446fe41ce34432fafdf8e6 (diff)
Fixed sprite positioning bug in Zero Target [Angelo Salese]
-rw-r--r--src/mame/drivers/cntsteer.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c
index 2e906923720..4715af17a9f 100644
--- a/src/mame/drivers/cntsteer.c
+++ b/src/mame/drivers/cntsteer.c
@@ -118,14 +118,18 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
if (fx) fx=0; else fx=1;
sy2=sy-16;
}
- else sy2=sy+16;
-
- if (fy && multi) {
+ else if (fy && multi)
+ {
sy2=sy;
- sy-=16;
+ sy+=16;
code++;
code2--;
}
+ else if(multi)
+ {
+ sy2=sy;
+ sy-=16;
+ }
drawgfx(bitmap,machine->gfx[1],
code,