aboutsummaryrefslogtreecommitdiff
path: root/inertia.c
diff options
context:
space:
mode:
Diffstat (limited to 'inertia.c')
-rw-r--r--inertia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inertia.c b/inertia.c
index b47d58e..ed50c7a 100644
--- a/inertia.c
+++ b/inertia.c
@@ -1605,7 +1605,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
* end up the right way round. */
angle = atan2(dx, -dy);
- angle = (angle + (PI/8)) / (PI/4);
+ angle = (angle + (float)(PI/8)) / (float)(PI/4);
assert(angle > -16.0F);
dir = (int)(angle + 16.0F) & 7;
}