SW: Change fix16_from_float() to fix16_from_int() that was changed in 4630c8a0b7 but should have been reverted in 377ba68344.

This commit is contained in:
Mitchell Richters 2020-05-18 21:48:06 +10:00 committed by Christoph Oelckers
parent 670a53c402
commit 423c9da071

View file

@ -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));
}