From 16468778292bc093438f71ae3674c30c3d5adcc6 Mon Sep 17 00:00:00 2001 From: MeiiMoon <115646589+MeiiMoon@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:23:37 +0200 Subject: [PATCH] Add PrimaryState Initial to the state transitions between Standby to Ready (#1335) --- crates/control/src/localization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/control/src/localization.rs b/crates/control/src/localization.rs index 2572dd9316..4b129b1cee 100644 --- a/crates/control/src/localization.rs +++ b/crates/control/src/localization.rs @@ -166,7 +166,7 @@ impl Localization { penalty: &Option, ) { match (self.last_primary_state, primary_state, game_phase) { - (PrimaryState::Standby, PrimaryState::Ready, _) => { + (PrimaryState::Standby | PrimaryState::Initial, PrimaryState::Ready, _) => { let initial_pose = generate_initial_pose( &context.initial_poses[*context.player_number], context.field_dimensions,