add extra check to save a little bit of time

This commit is contained in:
Alug committed 2025-03-16 11:08:55 +01:00
1 parent 380c8f65c8
commit 8c43857bd3
1 file changed
+1 -1
+1 -1
View File
@@ -10134,7 +10134,7 @@ static void K_drawKartMinimapHead(mobj_t *mo, INT32 x, INT32 y, INT32 flags)
}
#ifdef ROTSPRITE
if (cv_spinoutroll.value && mo->player)
if (cv_spinoutroll.value && mo->player && mo->player->spinoutrot)
{
// Rotate counterclockwise.
rollangle = FixedAngle(mo->player->spinoutrot * -1);