diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 251144654..3c1c2054d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -39,6 +39,8 @@ #include "statuseffect.h" #include "units.h" +#include "gui/buy.h" +#include "gui/buysell.h" #include "gui/changeemaildialog.h" #include "gui/changepassworddialog.h" #include "gui/charselectdialog.h" @@ -48,6 +50,8 @@ #include "gui/okdialog.h" #include "gui/quitdialog.h" #include "gui/register.h" +#include "gui/npcdialog.h" +#include "gui/sell.h" #include "gui/sdlinput.h" #include "gui/serverdialog.h" #include "gui/setup.h" @@ -67,6 +71,7 @@ #include "net/logindata.h" #include "net/loginhandler.h" #include "net/net.h" +#include "net/npchandler.h" #include "net/packetcounters.h" #include "net/worldinfo.h" @@ -1999,3 +2004,12 @@ void Client::setFramerate(int fpsLimit) SDL_setFramerate(&instance()->mFpsManager, fpsLimit); } + +void Client::closeDialogs() +{ + Net::getNpcHandler()->clearDialogs(); + BuyDialog::closeAll(); + BuySellDialog::closeAll(); + NpcDialog::closeAll(); + SellDialog::closeAll(); +}
\ No newline at end of file |