Changeset - r22168:1893a43131f7
[Not reviewed]
master
0 1 0
frosch - 9 years ago 2015-07-26 09:56:43
frosch@openttd.org
(svn r27341) -Fix [FS#6332]: Do not rerandomise the town name when only cost-estimating the founding.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_gui.cpp
Show inline comments
 
@@ -1110,13 +1110,14 @@ public:
 
			if (strcmp(buf, this->townname_editbox.text.buf) != 0) name = this->townname_editbox.text.buf;
 
		}
 

	
 
		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)
 
	{
 
		switch (widget) {
 
			case WID_TF_NEW_TOWN:
0 comments (0 inline, 0 general)