From 19bca44f37ee4dab3ff7ee11bf76c27023968fe9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Sep 2022 18:30:23 +0200 Subject: [PATCH] - added a float version of BobVal. We will need this later. --- source/core/gamefuncs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/core/gamefuncs.h b/source/core/gamefuncs.h index 4fc75d77d..855401be1 100644 --- a/source/core/gamefuncs.h +++ b/source/core/gamefuncs.h @@ -599,4 +599,9 @@ inline double BobVal(int val) return g_sinbam((unsigned)val << 21); } +inline double BobVal(double val) +{ + return g_sinbam((unsigned)(val * (1 << 21))); +} + #include "updatesector.h"