mirror of https://github.com/OpenTTD/OpenTTD
(svn r27341) -Fix [FS#6332]: Do not rerandomise the town name when only cost-estimating the founding.
parent
4830497f0b
commit
a81968d0f3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue