summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 14:26:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 14:28:39 +0300
commit1cd50987bce69ada9ccea8c822ccd0ffb34cedde (patch)
tree58858017e679e053905775ef5cad3a711851edea /src/actions
parentb7bb27910303ef1538e2cbb4093e452c77567739 (diff)
downloadmv-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.gz
mv-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.bz2
mv-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.tar.xz
mv-1cd50987bce69ada9ccea8c822ccd0ffb34cedde.zip
Add partial support for cart window.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/windows.cpp9
-rw-r--r--src/actions/windows.h1
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