Skip to content

Make portal positions dynamic (pre-work for multitown)#8554

Open
yuripourre wants to merge 1 commit intodiasurgical:masterfrom
yuripourre:dynamic-town-portals
Open

Make portal positions dynamic (pre-work for multitown)#8554
yuripourre wants to merge 1 commit intodiasurgical:masterfrom
yuripourre:dynamic-town-portals

Conversation

@yuripourre
Copy link
Copy Markdown
Collaborator

@yuripourre yuripourre commented May 2, 2026

This PR turns the Point PortalTownPosition[MAXPORTAL] array into a dynamic array std::array<Point, MAXPORTAL> ActivePortalPositions.

The main change is to access the portals' positions using GetPortalTownPosition(i) instead of PortalTownPosition[i].

The reason for that is to make easier to modify this structure and change the positions of town portals in other towns.

@yuripourre yuripourre added the pr size:small Pull Requests that add less than 30 lines label May 2, 2026
@yuripourre yuripourre self-assigned this May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr size:small Pull Requests that add less than 30 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant