1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00

Clean up many other coordinates

This commit is contained in:
Gymnasiast
2020-03-13 12:03:43 +01:00
parent 3412c47a9e
commit bdf681f440
32 changed files with 132 additions and 172 deletions

View File

@@ -221,14 +221,13 @@ bool track_paint_util_has_fence(
break;
}
int32_t entranceX = (position.x / 32) + offset.x;
int32_t entranceY = (position.y / 32) + offset.y;
auto entranceLoc = TileCoordsXY(position) + offset;
int32_t entranceId = tileElement->AsTrack()->GetStationIndex();
const TileCoordsXYZD entrance = ride_get_entrance_location(ride, entranceId);
const TileCoordsXYZD exit = ride_get_exit_location(ride, entranceId);
return ((entrance.x != entranceX || entrance.y != entranceY) && (exit.x != entranceX || exit.y != entranceY));
return (entranceLoc != entrance && entranceLoc != exit);
}
void track_paint_util_paint_floor(