UINT8 __fastcall Othunder68KReadByte(UINT32 a) { switch (a) { case 0x500001: { return ~BurnGunReturnX(0); } case 0x500003: { return BurnGunReturnY(0); } case 0x500005: { return ~BurnGunReturnX(1); } case 0x500007: { return BurnGunReturnY(1); } default: { bprintf(PRINT_NORMAL, _T("68K #1 Read byte => %06X\n"), a); } } return 0; }
static void GunTargetUpdate(INT32 player) { if (GunTargetLastX[player] != BurnGunReturnX(player) || GunTargetLastY[player] != BurnGunReturnY(player)) { GunTargetLastX[player] = BurnGunReturnX(player); GunTargetLastY[player] = BurnGunReturnY(player); GunTargetTimer[player] = nCurrentFrame; } }