1
0
Fork 0

Codechange: Don't reimplement DistanceManhattan. (#13850)

pull/13863/head
Peter Nelson 2025-03-21 17:06:39 +00:00 committed by GitHub
parent 6297b49a00
commit a4f9977d18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@
if (!IsRoadTypeAvailable(GetCurrentRoadType())) return false;
/* Tiles not neighbouring */
if ((abs((int)::TileX(t1) - (int)::TileX(t2)) + abs((int)::TileY(t1) - (int)::TileY(t2))) != 1) return false;
if (::DistanceManhattan(t1, t2) != 1) return false;
RoadTramType rtt = ::GetRoadTramType(ScriptObject::GetRoadType());
RoadBits r1 = ::GetAnyRoadBits(t1, rtt); // TODO