Skip to content

Replace remaining users of var_83C with rowCount#3709

Merged
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
AaronVanGeffen:rowcount-cleanup
Apr 23, 2026
Merged

Replace remaining users of var_83C with rowCount#3709
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
AaronVanGeffen:rowcount-cleanup

Conversation

@AaronVanGeffen
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen commented Apr 20, 2026

With the various 'list' windows recently refactored, the var_83C is now hardly used. This PR replaces the two remaining instances (build vehicle, terraform/trees) with rowCount as well. Makes things just a little bit more readable.

int16_t rowInfo[1000];
uint16_t rowCount;
uint16_t var_83C;
uint16_t var_83C; // unused
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

perhaps we could say was used in conjuction with rowCount to represent displayed rows.

@AaronVanGeffen AaronVanGeffen merged commit 82ee5ab into OpenLoco:master Apr 23, 2026
14 checks passed
@AaronVanGeffen AaronVanGeffen deleted the rowcount-cleanup branch April 23, 2026 07:26
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