mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
fix gcc 6.0 build (nw)
This commit is contained in:
parent
dcab55bf53
commit
be2e9a9398
@ -261,8 +261,8 @@ void itech8_state::vels_to_inters(UINT8 x, UINT8 vx, UINT8 vy,
|
|||||||
|
|
||||||
/* inter2 can be derived from Vx and Vy */
|
/* inter2 can be derived from Vx and Vy */
|
||||||
_27d8 = ((UINT64)vy * 0xfbd3) >> 16;
|
_27d8 = ((UINT64)vy * 0xfbd3) >> 16;
|
||||||
*inter2 = 0x30f2e / (_27d8 + ((abs((INT8)vx) << 16) / 0x58f8c));
|
*inter2 = 0x30f2e / (_27d8 + (((UINT32)abs((INT8)vx) << 16) / 0x58f8c));
|
||||||
inter2a = 0x30f2e / (_27d8 - ((abs((INT8)vx) << 16) / 0x58f8c));
|
inter2a = 0x30f2e / (_27d8 - (((UINT32)abs((INT8)vx) << 16) / 0x58f8c));
|
||||||
|
|
||||||
/* compute it back both ways and pick the closer */
|
/* compute it back both ways and pick the closer */
|
||||||
inters_to_vels(*inter1, *inter2, 0, 0, &x1, &vx1, &vy1);
|
inters_to_vels(*inter1, *inter2, 0, 0, &x1, &vx1, &vy1);
|
||||||
|
Loading…
Reference in New Issue
Block a user