From dcba692b89d3d0b8878039af95c5038ab7bdd197 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 8 Feb 2022 20:52:28 +0100 Subject: [PATCH] Added end_of_game command after second half overtime --- mslrb2015/StateMachine.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mslrb2015/StateMachine.pde b/mslrb2015/StateMachine.pde index c6b9a06..e967450 100644 --- a/mslrb2015/StateMachine.pde +++ b/mslrb2015/StateMachine.pde @@ -100,11 +100,12 @@ static class StateMachine if (bCommoncmds[CMDID_COMMON_HALFTIME].Label == "Game Over"){ send_event_v2(COMM_GAMEOVER, Description.get(COMM_GAMEOVER), null, -1); gsCurrent = GameStateEnum.GS_ENDGAME; - break; } else{ send_event_v2(COMM_END_GAME, Description.get(COMM_END_GAME), null, -1); } + break; case GS_PENALTIES: + send_event_v2(COMM_END_GAME, Description.get(COMM_END_GAME), null, -1); break; case GS_ENDGAME: send_event_v2(COMM_GAMEOVER, Description.get(COMM_GAMEOVER), null, -1);