Skip to content

Commit

Permalink
Disable items for time trials
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Aug 9, 2021
1 parent b7a624a commit 592abe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions race.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ void Race::setup_race() {
best_lap_time = best_time;
} else
num_karts = 1;

// disable items
for(auto &obj : state.track->get_objects()) {
if(obj.type == ObjectType::Item)
obj.type = ObjectType::Removed;
}
}
}

Expand Down

0 comments on commit 592abe1

Please sign in to comment.