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"