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:
Eidolon 2022-11-12 21:05:25 +00:00
commit edb813e481

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