Ensure st_time does not exceed 2.0

This commit is contained in:
Eidolon 2022-11-12 11:45:10 -06:00
parent e59684b1a2
commit 147b3c925e

View file

@ -7738,6 +7738,8 @@ static void M_DrawSoundTest(void)
frame[3] += (((cv_soundtest.value - 1) / 9) % (FIRSTSUPERCOLOR - frame[3]));
if (st_time < (2 << FRACBITS))
st_time += renderdeltatics;
if (st_time >= (2 << FRACBITS))
st_time = 2 << FRACBITS;
}
}
else