Skip to content

Commit

Permalink
fix team size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffA233 committed Dec 5, 2023
1 parent e04c0f4 commit ffd1ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sim_wrapper/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ffd1ebf

Please sign in to comment.