mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 17:11:33 +00:00
Ensure st_time does not exceed 2.0
This commit is contained in:
parent
e59684b1a2
commit
147b3c925e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue