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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user