# HG changeset patch # User belugas # Date 1209061073 0 # Node ID 01925c5d0d133856c41948578e2966997eee9d72 # Parent 66549710afdbc3b267f4185c989d749663dafff4 (svn r12874) -Codechange: The closest town is already known. Do not search for it again. diff -r 66549710afdb -r 01925c5d0d13 src/station_cmd.cpp --- a/src/station_cmd.cpp Thu Apr 24 17:53:45 2008 +0000 +++ b/src/station_cmd.cpp Thu Apr 24 18:17:53 2008 +0000 @@ -1714,7 +1714,7 @@ if (flags & DC_EXEC) { st = new Station(); - st->town = ClosestTownFromTile(tile, (uint)-1); + st->town = t; GenerateStationName(st, tile, !(afc->flags & AirportFTAClass::AIRPLANES) ? STATIONNAMING_HELIPORT : STATIONNAMING_AIRPORT); if (IsValidPlayer(_current_player)) {