From bd50600f5b2c224e3c5b60563ad97660dd0f039b Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 26 Jul 2015 09:56:43 +0000 Subject: [PATCH] (svn r27341) -Fix [FS#6332]: Do not rerandomise the town name when only cost-estimating the founding. --- src/town_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 6ae37d71af..222549ff73 100644 --- 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)