mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 01:43:50 +00:00
Merge branch 'soundtest-sfx-crash' into 'next'
Ensure st_time does not exceed 2.0 Closes #901 See merge request STJr/SRB2!1862
This commit is contained in:
commit
edb813e481
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