summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2012-09-11 13:19:05 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2012-09-11 13:19:05 +0000
commit6740333aca199ab57a1a88531ff2a7ea6e125f28 (patch)
treea08d07be482603935eaacd3029c8b476d1c7049b /src/mame
parent531acfd487ca28710dd97639d8dbc1c6b3bf831b (diff)
0x588 is just a mirror of 0x580 apparently ...
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/machine/seicop.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/machine/seicop.c b/src/mame/machine/seicop.c
index af73e380f29..2463c83e282 100644
--- a/src/mame/machine/seicop.c
+++ b/src/mame/machine/seicop.c
@@ -1774,18 +1774,16 @@ static UINT8 cop_calculate_collsion_detection(running_machine &machine)
/* outbound X check */
if(cop_collision_info[0].max_x >= cop_collision_info[1].min_x && cop_collision_info[0].min_x <= cop_collision_info[1].max_x)
- res &= ~1;
+ res &= ~2;
/* outbound Y check */
if(cop_collision_info[0].max_y >= cop_collision_info[1].min_y && cop_collision_info[0].min_y <= cop_collision_info[1].max_y)
- res &= ~2;
+ res &= ~1;
- /* TODO: Legionnaire does collision detection via the other two regs,
- for now just implement a version that allows the player to spam flying kicks and hit everything else on the screen ;-) */
cop_hit_val_x = (cop_collision_info[0].min_x - cop_collision_info[1].min_x) >> 16;
cop_hit_val_y = (cop_collision_info[0].min_y - cop_collision_info[1].min_y) >> 16;
cop_hit_val_z = 1;
- cop_hit_val_unk = 0;//((cop_collision_info[0].min_y >> 16) != (cop_collision_info[1].min_y >> 16));
+ cop_hit_val_unk = res;//((cop_collision_info[0].min_y >> 16) != (cop_collision_info[1].min_y >> 16));
//if(res == 0)
//popmessage("0:%08x %08x %08x 1:%08x %08x %08x\n",cop_collision_info[0].x,cop_collision_info[0].y,cop_collision_info[0].hitbox,cop_collision_info[1].x,cop_collision_info[1].y,cop_collision_info[1].hitbox);
@@ -2298,7 +2296,8 @@ static WRITE16_HANDLER( generic_cop_w )
//(heatbrl) | 9 | ffff | b080 | b40 bc0 bc2
if(COP_CMD(0xb40,0xbc0,0xbc2,0x000,0x000,0x000,0x000,0x000,u1,u2))
{
- UINT8 start_x,/*start_y,*/end_x,end_y;
+ UINT8 start_x,end_x,end_y;
+ //UINT8 start_y;
cop_collision_info[0].hitbox = space->read_word(cop_register[2]);
cop_collision_info[0].hitbox_y = space->read_word((cop_register[2]&0xffff0000)|(cop_collision_info[0].hitbox));
cop_collision_info[0].hitbox_x = space->read_word(((cop_register[2]&0xffff0000)|(cop_collision_info[0].hitbox))+2);
@@ -2335,7 +2334,8 @@ static WRITE16_HANDLER( generic_cop_w )
//(heatbrl) | 6 | ffff | b880 | b60 be0 be2
if(COP_CMD(0xb60,0xbe0,0xbe2,0x000,0x000,0x000,0x000,0x000,u1,u2))
{
- UINT8 start_x,/*start_y,*/end_x,end_y;
+ UINT8 start_x, end_x,end_y;
+ //UINT8 start_y;
/* Take hitbox param, TODO */
cop_collision_info[1].hitbox = space->read_word(cop_register[3]);