mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13244) -Fix: allow only one town directory window to be opened
This commit is contained in:
parent
5fa0946c08
commit
32380e257c
|
@ -618,6 +618,7 @@ static const WindowDesc _town_directory_desc = {
|
||||||
|
|
||||||
void ShowTownDirectory()
|
void ShowTownDirectory()
|
||||||
{
|
{
|
||||||
|
if (BringWindowToFrontById(WC_TOWN_DIRECTORY, 0)) return;
|
||||||
new TownDirectoryWindow(&_town_directory_desc);
|
new TownDirectoryWindow(&_town_directory_desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue