From 06dd9712913e7c758855dd2ad5651d0a86276e39 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 29 Mar 2023 09:38:49 +1100 Subject: [PATCH] - When the `gameaction` is `ga_level`, return and don't break. * This was causing the first input packet to only be sent to the playsim after the first tic occurred. * Previous: player 1 of 1 (1 nodes); E1L1: Hollywood Holocaust; PlayClock: 4; PlayClock: 4; PlayClock: 12;, etc. * Current: player 1 of 1 (1 nodes); E1L1: Hollywood Holocaust; PlayClock: 0; PlayClock: 4; PlayClock: 8;, etc. * Fixes #900. --- source/core/mainloop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index c80ed5bce..6cb3a64bc 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -268,7 +268,7 @@ static void GameTicker() Net_ClearFifo(); inputState.ClearAllInput(); gamestate = GS_LEVEL; - break; + return; case ga_intro: gamestate = GS_INTRO;