MAMEWorld >> Programming
Index   Flat Mode Flat  

ole
MAME Porter
Reged: 02/09/14
Posts: 19
Send PM
Re: mame 0.163 on ARM32 - raiden2 issue FIXED!
08/09/15 01:04 AM


> Congratulations on finding the issue and fixing it! If you're able to, please submit
> a Github pull request with the fix.

Thanks.
Github: I'm affraid I don't have a permission to push my branch to origin.

Anyway, here is the patch. Hope it helps.
------------------------ src/mame/machine/raiden2cop.c ------------------------
index 7194ca3..0190e69 100644
@@ -997,7 +997,7 @@ void raiden2cop_device::LEGACY_execute_130e(address_space &space, int offset, UI
cop_angle = 0;
}
else {
- cop_angle = atan(double(dy) / double(dx)) * 128.0 / M_PI;
+ cop_angle = (int)(atan(double(dy) / double(dx)) * 128.0 / M_PI);
if (dx < 0)
cop_angle += 0x80;
}
@@ -1020,7 +1020,7 @@ void raiden2cop_device::LEGACY_execute_130e_cupsoc(address_space &space, int off
cop_angle = 0;
}
else {
- cop_angle = atan(double(dy) / double(dx)) * 128.0 / M_PI;
+ cop_angle = (int)(atan(double(dy) / double(dx)) * 128.0 / M_PI);
if (dx < 0)
cop_angle += 0x80;
}
@@ -1057,7 +1057,7 @@ void raiden2cop_device::execute_2288(address_space &space, int offset, UINT16 da
cop_angle = 0;
}
else {
- cop_angle = atan(double(dx) / double(dy)) * 128 / M_PI;
+ cop_angle = (int)(atan(double(dx) / double(dy)) * 128 / M_PI);
if (dy < 0)
cop_angle += 0x80;
}
@@ -1095,7 +1095,7 @@ void raiden2cop_device::execute_338e(address_space &space, int offset, UINT16 da
cop_angle = 0;
}
else {
- cop_angle = atan(double(dx) / double(dy)) * 128 / M_PI;
+ cop_angle = (int)(atan(double(dx) / double(dy)) * 128 / M_PI);
if (dy < 0)
cop_angle += 0x80;
}
@@ -1553,7 +1553,7 @@ void raiden2cop_device::LEGACY_execute_e30e(address_space &space, int offset, UI
cop_angle = 0;
}
else {
- cop_angle = atan(double(dy) / double(dx)) * 128.0 / M_PI;
+ cop_angle = (int)(atan(double(dy) / double(dx)) * 128.0 / M_PI);
if (dx < 0)
cop_angle += 0x80;
}







Entire thread
Subject Posted by Posted on
* mame 0.163 on ARM32 - raiden2 issue ole 08/04/15 12:38 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue R. Belmont  08/04/15 04:47 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/04/15 11:08 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/04/15 11:30 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/05/15 11:18 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/07/15 03:44 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/07/15 10:32 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue AWJ  08/07/15 02:56 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue ole  08/07/15 10:36 PM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! ole  08/08/15 01:33 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! AWJ  08/08/15 03:36 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue FIXED! ole  08/09/15 01:04 AM
. * Re: mame 0.163 on ARM32 - raiden2 issue Haze  08/04/15 01:11 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 42 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2761