From ffd1ebf34045da6d1b17b791676d4e43ede6e9f2 Mon Sep 17 00:00:00 2001 From: JeffA233 <63136834+JeffA233@users.noreply.github.com> Date: Mon, 4 Dec 2023 21:45:42 -0500 Subject: [PATCH] fix team size bug --- src/sim_wrapper/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sim_wrapper/wrapper.rs b/src/sim_wrapper/wrapper.rs index 5f04500..df87d8d 100644 --- a/src/sim_wrapper/wrapper.rs +++ b/src/sim_wrapper/wrapper.rs @@ -534,7 +534,7 @@ impl RocketsimWrapper { let car_count_blue = new_config.team_size; let car_count_orange = if new_config.spawn_opponents {new_config.team_size} else {0}; - if car_blue == car_count_blue && car_orange == car_count_orange { + if car_blue != car_count_blue || car_orange != car_count_orange { for car_id in car_ids.iter() { let err = self.arena.pin_mut().remove_car(*car_id); match err {