diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 15:59:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 15:59:27 +0300 |
commit | 662ea582cd57827475062fb6b728da6c21c14181 (patch) | |
tree | 1dc38343871d3e36d09a16ee2d85d95ae81da3e0 /src/actions | |
parent | ffe1b11e981112a662669358863805fabe14e94c (diff) | |
download | manaplus-662ea582cd57827475062fb6b728da6c21c14181.tar.gz manaplus-662ea582cd57827475062fb6b728da6c21c14181.tar.bz2 manaplus-662ea582cd57827475062fb6b728da6c21c14181.tar.xz manaplus-662ea582cd57827475062fb6b728da6c21c14181.zip |
Move chat command /pricesave into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 10 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 916bde3c2..97c792470 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -625,4 +625,14 @@ impHandler0(priceLoad) return false; } +impHandler0(priceSave) +{ + if (shopWindow) + { + shopWindow->saveList(); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/actions.h b/src/actions/actions.h index 5cd21a9d8..4e0155556 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -62,6 +62,7 @@ namespace Actions decHandler(attackHuman); decHandler(trade); decHandler(priceLoad); + decHandler(priceSave); } // namespace Actions #undef decHandler |