# HG changeset patch # User celestar # Date 1144605000 0 # Node ID cf1e0bbef0105528a55866eb657050b3a6e30d02 # Parent a675711002340f18c7eb7631a7597b6aa3d6e00b (svn r4337) -Fix: A problem where GetRailType was called instead of GetRailTileType. Thanks to glx for noticing diff -r a67571100234 -r cf1e0bbef010 rail_cmd.c --- a/rail_cmd.c Sun Apr 09 14:49:45 2006 +0000 +++ b/rail_cmd.c Sun Apr 09 17:50:00 2006 +0000 @@ -1799,7 +1799,7 @@ byte old_ground; byte new_ground; - if (GetRailType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) { + if (GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) { old_ground = GB(_m[tile].m4, 0, 4); } else { old_ground = GB(_m[tile].m2, 0, 4); @@ -1822,7 +1822,7 @@ } // Don't continue tile loop for depots - if (GetRailType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) return; + if (GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT) return; new_ground = RAIL_GROUND_GREEN;