From 32380e257ce18d4cf3409ce9f1b8c5b43b3610ed Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 25 May 2008 15:57:45 +0000 Subject: (svn r13244) -Fix: allow only one town directory window to be opened --- src/town_gui.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3-70-g09d2