summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-25 15:57:45 +0000
committersmatz <smatz@openttd.org>2008-05-25 15:57:45 +0000
commit8d51e95c44f9d2b4338675f431098ce24c7690c0 (patch)
tree32cc8e45e826c635dc7f8e8cfdc41b3307740331
parentce821b1adac69e91598f48217da42405ca08eb34 (diff)
downloadopenttd-8d51e95c44f9d2b4338675f431098ce24c7690c0.tar.xz
(svn r13244) -Fix: allow only one town directory window to be opened
-rw-r--r--src/town_gui.cpp1
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);
}