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 | 8d51e95c44f9d2b4338675f431098ce24c7690c0 (patch) | |
tree | 32cc8e45e826c635dc7f8e8cfdc41b3307740331 | |
parent | ce821b1adac69e91598f48217da42405ca08eb34 (diff) | |
download | openttd-8d51e95c44f9d2b4338675f431098ce24c7690c0.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); } |