mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
HE: Proper cast to double to avoid integer division
This commit is contained in:
parent
5675fa7b7f
commit
ccd82145a4
@ -256,7 +256,7 @@ int32 LogicHErace::op_1102(int32 *args) {
|
||||
}
|
||||
|
||||
int32 LogicHErace::op_1103(int32 *args) {
|
||||
double angle = args[0] / args[1] * DEG2RAD;
|
||||
double angle = (double)args[0] / (double)args[1] * DEG2RAD;
|
||||
|
||||
writeScummVar(108, (int32)(sin(angle) * args[2]));
|
||||
writeScummVar(109, (int32)(cos(angle) * args[2]));
|
||||
|
Loading…
Reference in New Issue
Block a user