From 3749a89d6aafae0ae8380dbb0891a9faf45fb23b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 13 May 2020 14:42:47 +1000 Subject: [PATCH] Build: Change renderSetRollAngle() to take a float and not an int32_t. --- source/build/include/build.h | 2 +- source/build/src/engine.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 98b7059cf..622957fea 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -1064,7 +1064,7 @@ int32_t wallvisible(int32_t const x, int32_t const y, int16_t const wallnum); int32_t videoSetRenderMode(int32_t renderer); #ifdef USE_OPENGL -void renderSetRollAngle(int32_t rolla); +void renderSetRollAngle(float rolla); #endif // pal: pass -1 to invalidate all palettes for the tile, or >=0 for a particular palette diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 09de9bde9..36c9527bf 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -5465,8 +5465,8 @@ int32_t videoSetRenderMode(int32_t renderer) // setrollangle // #ifdef USE_OPENGL -void renderSetRollAngle(int32_t rolla) +void renderSetRollAngle(float rolla) { - gtang = (float)rolla * (fPI * (1.f/1024.f)); + gtang = rolla * (fPI * (1.f/1024.f)); } #endif