Skip to content

Commit

Permalink
Fix a bug with seat position and stage reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Detegr committed Apr 28, 2024
1 parent 113c3a5 commit 310b70c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.8.1

- Fix a bug where the seat position was not loaded correctly if a stage was
restarted

## 0.8.0

- Fix desktop window and 2D content window size calculation
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ set(HEADERS

set(openRBRVR_Major 0)
set(openRBRVR_Minor 8)
set(openRBRVR_Patch 0)
set(openRBRVR_Patch 1)
set(openRBRVR_Tweak 0)
# set(openRBRVR_TweakStr "-rc${openRBRVR_Tweak}")

Expand Down
5 changes: 5 additions & 0 deletions src/RBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ namespace rbr {
g::game_mode = game_mode;
}

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

g::is_driving = g::game_mode == GameMode::Driving;
g::is_rendering_3d = g::is_driving
|| (g::cfg.render_mainmenu_3d && g::game_mode == GameMode::MainMenu)
Expand Down

0 comments on commit 310b70c

Please sign in to comment.