From 6bd8fafbad50a52102ff0f8f8c5e39dbe644c485 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 27 Jul 2012 01:44:55 +0000 Subject: [PATCH] - Fixed: The float bob offsetting in R_ProjectSprite was using r_TicFrac as a millisecond count rather than as a fraction of a tic. SVN r3788 (trunk) --- src/r_things.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index bdfd9f95e..80d0a75bc 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -517,7 +517,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor // [RH] Make floatbobbing a renderer-only effect. if (thing->flags2 & MF2_FLOATBOB) { - fz += finesine[(Scale(thing->FloatBobPhase + level.maptime, FINEANGLES, 64) + r_TicFrac * ((FINEANGLES/64) / 1000)) & FINEMASK] * 8; + fz += finesine[MulScale22(((thing->FloatBobPhase + level.maptime) << FRACBITS) + r_TicFrac, FINEANGLES) & FINEMASK] * 8; } // transform the origin point