Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Retainer State Disappearing from HUD on Restore #872

Merged
merged 1 commit into from Sep 12, 2023

Conversation

SteelFill
Copy link
Contributor

Fix for http://www.elvastower.com/forums/index.php?/topic/37438-retainer-state-not-updated-on-restore/page__pid__300516#entry300516

The retainer state on the Alt + F5 brake HUD would fail to show the retainer state after loading from a saved game (the "RetValve" column would be blank, regardless of the presence/lack of retaining valves on the equipment in the activity). This is because the retainer debug state is only updated when the retainer state changes (and the state is not changed upon loading). Note that this is not an issue with the functionality of the retaining valves, just a bug with displaying them.

Fixed by simply adding the RetainerDebugState to save and restore. Whatever the state is will automatically be recovered when loading a save without the need to re-initialize the variable.

@SteelFill SteelFill added the bug Something isn't working label Sep 10, 2023
twpol pushed a commit that referenced this pull request Sep 10, 2023
- Pull request #757 at 98dd1a7: Unify RailDriver code implementations
- Pull request #831 at 594df54: poor mans switch panel on tablet
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters
- Pull request #841 at 410a585: https://blueprints.launchpad.net/or/+spec/animating-trainset-windows
- Pull request #853 at d05f581: Notify out of focus
- Pull request #855 at b39e5d8: Adds new route from TrainSimulations
- Pull request #857 at 9afc8c3: Adding Air Flow Meters
- Pull request #863 at a34b857: Alternate preset 3D cabviewpoints
- Pull request #864 at e71bc5a: Fixes for Undesired Emergency Applications
- Pull request #865 at 776d6df: Dispatcher window improvements
- Pull request #866 at c15333e: Fix Articulation For 0-Axle Train Cars
- Pull request #870 at 5cb32fa: Fix water restore
- Pull request #871 at c2388e6: Signal aspects are multiplied when reopening Dispatcher Window
- Pull request #872 at 00c5b8b: Fix Retainer State Disappearing from HUD on Restore
twpol pushed a commit that referenced this pull request Sep 10, 2023
- Pull request #757 at 98dd1a7: Unify RailDriver code implementations
- Pull request #831 at 3e672a8: poor mans switch panel on tablet
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters
- Pull request #841 at 410a585: https://blueprints.launchpad.net/or/+spec/animating-trainset-windows
- Pull request #853 at d05f581: Notify out of focus
- Pull request #855 at b39e5d8: Adds new route from TrainSimulations
- Pull request #857 at 9afc8c3: Adding Air Flow Meters
- Pull request #863 at a34b857: Alternate preset 3D cabviewpoints
- Pull request #864 at e71bc5a: Fixes for Undesired Emergency Applications
- Pull request #865 at 776d6df: Dispatcher window improvements
- Pull request #866 at c15333e: Fix Articulation For 0-Axle Train Cars
- Pull request #870 at 5cb32fa: Fix water restore
- Pull request #871 at c2388e6: Signal aspects are multiplied when reopening Dispatcher Window
- Pull request #872 at 00c5b8b: Fix Retainer State Disappearing from HUD on Restore
@cesarBLG cesarBLG merged commit fa79925 into openrails:master Sep 12, 2023
3 checks passed
@SteelFill SteelFill deleted the retainer-state-fix branch September 15, 2023 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants