From bda616eb0141f4db7bab2d6edd0e91a58c5328d3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 7 Oct 2022 19:20:04 +0200 Subject: [PATCH] - fixed warning --- source/games/duke/src/gameexec.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/gameexec.cpp b/source/games/duke/src/gameexec.cpp index 61f8c2c44..5ffb8125e 100644 --- a/source/games/duke/src/gameexec.cpp +++ b/source/games/duke/src/gameexec.cpp @@ -1729,16 +1729,16 @@ int ParseState::parse(void) // 1.4, so instead of patching the CONs I'll surruptitiously patch the code here //if (!isPlutoPak() && *insptr == 0) *insptr = 4; - double s = ((*insptr) * REPEAT_SCALE - g_ac->spr.ScaleX()); - g_ac->spr.SetScaleX(clamp(g_ac->spr.ScaleX() + Sgn(s) * REPEAT_SCALE, 0., 4.)); + double siz = ((*insptr) * REPEAT_SCALE - g_ac->spr.ScaleX()); + g_ac->spr.SetScaleX(clamp(g_ac->spr.ScaleX() + Sgn(siz) * REPEAT_SCALE, 0., 4.)); insptr++; auto scale = g_ac->spr.ScaleY(); if ((g_ac->isPlayer() && scale < 0.5626) || *insptr * REPEAT_SCALE < scale || (scale * (tileHeight(g_ac->spr.picnum) + 8)) < g_ac->floorz - g_ac->ceilingz) { - s = ((*insptr) * REPEAT_SCALE - g_ac->spr.ScaleY()); - g_ac->spr.SetScaleY(clamp(g_ac->spr.ScaleY() + Sgn(s) * REPEAT_SCALE, 0., 4.)); + siz = ((*insptr) * REPEAT_SCALE - g_ac->spr.ScaleY()); + g_ac->spr.SetScaleY(clamp(g_ac->spr.ScaleY() + Sgn(siz) * REPEAT_SCALE, 0., 4.)); } insptr++;