Simplify intermission timer code

- We had two ways of ending the intermission, but only one would actually be used, and it resulted in code duplication.
- Combine the two ways.
- Disable the reached-but-didn't-do-anything-before-now code path for setting endtic.
This commit is contained in:
toaster authored and Alug committed 2025-10-22 23:08:43 +02:00
1 parent 41407538d4
commit ed16c4fd9f
1 file changed
+2 -12
+2 -12
View File
@@ -552,18 +552,8 @@ void Y_Ticker(void)
intertic++;
// multiplayer uses timer (based on cv_inttime)
if (timer)
{
if (!--timer)
{
Y_EndIntermission();
Y_FollowIntermission();
return;
}
}
// single player is hardcoded to go away after awhile
else if (intertic == endtic)
if ((timer && !--timer)
|| (intertic == endtic))
{
Y_EndIntermission();
Y_FollowIntermission();