Skip to content

use last railroad option instead of last road option#3169

Closed
LeftofZen wants to merge 1 commit intoOpenLoco:masterfrom
LeftofZen:fixWrongLastRailroadOption
Closed

use last railroad option instead of last road option#3169
LeftofZen wants to merge 1 commit intoOpenLoco:masterfrom
LeftofZen:fixWrongLastRailroadOption

Conversation

@LeftofZen
Copy link
Copy Markdown
Contributor

No description provided.

@LeftofZen LeftofZen requested a review from AaronVanGeffen July 25, 2025 14:24
Comment on lines 46 to +47
auto lastRoadOption = getGameState().lastRoadOption;
auto lastRailRoadOption = getGameState().lastRailroadOption;
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oddly enough this is not what vanilla is doing at this point. Only lastRoadOption is used.

To me, this suggests our ToolbarTopCommon::draw implementation is correct, and the problem is indeed with CompanyManager::sub_4A6DA9 (#3084).

@AaronVanGeffen
Copy link
Copy Markdown
Member

Superseded by #3170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants