From 1a814885dabf22641f3ae41e1de688d45b8900c1 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 28 Aug 2022 17:27:37 +0100 Subject: [PATCH] Interpolate the Phantom Ruby floating animation. A recommit and not a cherry-pick because the other current uses won't be relevant in new-menus. --- src/y_inter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/y_inter.c b/src/y_inter.c index 0f2a319bf..2959853e0 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -1095,8 +1095,9 @@ void Y_VoteDrawer(void) return; { - angle_t rubyfloattime = (ANGLE_MAX/NEWTICRATE)*(votetic % NEWTICRATE); + static angle_t rubyfloattime = 0; rubyheight = FINESINE(rubyfloattime>>ANGLETOFINESHIFT); + rubyfloattime += FixedMul(ANGLE_MAX/NEWTICRATE, renderdeltatics); } V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);