From 423c9da071844bdfb716d39e1cd2cf103727a37c Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 18 May 2020 21:48:06 +1000 Subject: [PATCH] SW: Change fix16_from_float() to fix16_from_int() that was changed in 4630c8a0b7a24819e04a14a64efff5d4b36271cf but should have been reverted in 377ba68344e34495638c6fa7685ff78c9a0ed6f8. --- source/sw/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index db54eac86..a6f55cfdf 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -1583,7 +1583,7 @@ DoPlayerTurnBoat(PLAYERp pp) } else { - angvel = fix16_smul(pp->input.q16avel, fix16_from_float(PLAYER_TURN_SCALE)); + angvel = fix16_smul(pp->input.q16avel, fix16_from_int(PLAYER_TURN_SCALE)); angvel = fix16_sadd(angvel, fix16_ssub(angvel, fix16_sdiv(angvel, fix16_from_int(4)))); angvel = fix16_sdiv(fix16_smul(angvel, fix16_from_int(synctics)), fix16_from_int(32)); }