Build: Change renderSetRollAngle() to take a float and not an int32_t.

This commit is contained in:
Mitchell Richters 2020-05-13 14:42:47 +10:00 committed by Christoph Oelckers
parent bece408548
commit 3749a89d6a
2 changed files with 3 additions and 3 deletions

View file

@ -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); int32_t videoSetRenderMode(int32_t renderer);
#ifdef USE_OPENGL #ifdef USE_OPENGL
void renderSetRollAngle(int32_t rolla); void renderSetRollAngle(float rolla);
#endif #endif
// pal: pass -1 to invalidate all palettes for the tile, or >=0 for a particular palette // pal: pass -1 to invalidate all palettes for the tile, or >=0 for a particular palette

View file

@ -5465,8 +5465,8 @@ int32_t videoSetRenderMode(int32_t renderer)
// setrollangle // setrollangle
// //
#ifdef USE_OPENGL #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 #endif