diff options
author | smatz <smatz@openttd.org> | 2008-05-25 15:57:45 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-25 15:57:45 +0000 |
commit | 32380e257ce18d4cf3409ce9f1b8c5b43b3610ed (patch) | |
tree | 32cc8e45e826c635dc7f8e8cfdc41b3307740331 | |
parent | 5fa0946c087408545c22250be1996f3433d94786 (diff) | |
download | openttd-32380e257ce18d4cf3409ce9f1b8c5b43b3610ed.tar.xz |
(svn r13244) -Fix: allow only one town directory window to be opened
-rw-r--r-- | src/town_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index bf4e63000..4e5e0cf8e 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -618,6 +618,7 @@ static const WindowDesc _town_directory_desc = { void ShowTownDirectory() { + if (BringWindowToFrontById(WC_TOWN_DIRECTORY, 0)) return; new TownDirectoryWindow(&_town_directory_desc); } |