diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-24 14:26:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-24 14:28:39 +0300 |
commit | 1cd50987bce69ada9ccea8c822ccd0ffb34cedde (patch) | |
tree | 58858017e679e053905775ef5cad3a711851edea /src/actions | |
parent | b7bb27910303ef1538e2cbb4093e452c77567739 (diff) | |
download | plus-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.gz plus-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.bz2 plus-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.xz plus-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.zip |
Add partial support for cart window.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/windows.cpp | 9 | ||||
-rw-r--r-- | src/actions/windows.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp index 1fe359402..9a7743590 100644 --- a/src/actions/windows.cpp +++ b/src/actions/windows.cpp @@ -275,6 +275,15 @@ impHandler0(bankWindowShow) return true; } +impHandler0(cartWindowShow) +{ + if (!serverFeatures->haveCart()) + return false; + + showHideWindow(cartWindow); + return true; +} + impHandler0(updaterWindowShow) { if (updaterWindow) diff --git a/src/actions/windows.h b/src/actions/windows.h index e418028ce..e3a4120cf 100644 --- a/src/actions/windows.h +++ b/src/actions/windows.h @@ -52,6 +52,7 @@ namespace Actions decHandler(questsWindowShow); decHandler(updaterWindowShow); decHandler(bankWindowShow); + decHandler(cartWindowShow); } // namespace Actions #undef decHandler |