Skip to content

Commit

Permalink
bugfix: reload seat position in rally school
Browse files Browse the repository at this point in the history
Rally school does not have prestage state, it goes like this:

Loading -> Pause -> Driving

instead of the normal

Loading -> Prestage -> Driving
  • Loading branch information
Detegr committed Sep 6, 2024
1 parent 1c6233a commit 75a2d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ namespace rbr {
g::game_mode = game_mode;
}

if (g::previous_game_mode != g::game_mode && g::game_mode == GameMode::PreStage) {
if (g::previous_game_mode != g::game_mode && (g::game_mode == GameMode::PreStage || g::game_mode == GameMode::Pause)) {
// Make sure we reload the seat position whenever the stage is restarted
g::seat_position_loaded = false;
}
Expand Down

0 comments on commit 75a2d4b

Please sign in to comment.