# HG changeset patch # User frosch # Date 2015-07-26 09:56:43 # Node ID 1893a43131f7310b54509867a099e47c6a956641 # Parent 098e772ecba05d9312c8f4a0b43437c9c660b193 (svn r27341) -Fix [FS#6332]: Do not rerandomise the town name when only cost-estimating the founding. diff --git a/src/town_gui.cpp b/src/town_gui.cpp --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -1113,7 +1113,8 @@ public: bool success = DoCommandP(tile, this->town_size | this->city << 2 | this->town_layout << 3 | random << 6, townnameparts, CMD_FOUND_TOWN | CMD_MSG(errstr), cc, name); - if (success) this->RandomTownName(); + /* Rerandomise name, if success and no cost-estimation. */ + if (success && !_shift_pressed) this->RandomTownName(); } virtual void OnClick(Point pt, int widget, int click_count)