1
0
Fork 0

Codechange: Don't reimplement DistanceManhattan.

pull/13850/head
Peter Nelson 2025-03-19 17:37:28 +00:00
parent b98a7ff303
commit 52713545c8
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@
if (!IsRoadTypeAvailable(GetCurrentRoadType())) return false; if (!IsRoadTypeAvailable(GetCurrentRoadType())) return false;
/* Tiles not neighbouring */ /* 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()); RoadTramType rtt = ::GetRoadTramType(ScriptObject::GetRoadType());
RoadBits r1 = ::GetAnyRoadBits(t1, rtt); // TODO RoadBits r1 = ::GetAnyRoadBits(t1, rtt); // TODO