Codechange: Don't reimplement DistanceManhattan. (#13850)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user