Codechange: Restructure RoadStop Entries to reduce pointers. (#14069)

A RoadStop must own both west and east `Entry`s, but they are allocated separately.

Combine this allocation into one instead.
This commit is contained in:
Peter Nelson
2025-04-23 08:29:34 +01:00
committed by GitHub
parent 41ed5f9822
commit 6d5aee0545
5 changed files with 53 additions and 62 deletions
+2 -2
View File
@@ -151,8 +151,8 @@ void AfterLoadRoadStops()
for (RoadStop *rs : RoadStop::Iterate()) {
if (!rs->status.Test(RoadStop::RoadStopStatusFlag::BaseEntry)) continue;
rs->GetEntry(DIAGDIR_NE)->Rebuild(rs);
rs->GetEntry(DIAGDIR_NW)->Rebuild(rs);
rs->GetEntry(DIAGDIR_NE).Rebuild(rs);
rs->GetEntry(DIAGDIR_NW).Rebuild(rs);
}
}