diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-22 22:24:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-22 22:24:24 +0300 |
commit | f6596726b6978a7380de163740e6b65c8394ca42 (patch) | |
tree | d1264b5536c1aeefb791b5e8d27b2c9500fc7cca /src/actions/pets.cpp | |
parent | 92eb0630eb067fbe0a18edb93a02f6fd424c3212 (diff) | |
download | mv-f6596726b6978a7380de163740e6b65c8394ca42.tar.gz mv-f6596726b6978a7380de163740e6b65c8394ca42.tar.bz2 mv-f6596726b6978a7380de163740e6b65c8394ca42.tar.xz mv-f6596726b6978a7380de163740e6b65c8394ca42.zip |
Move pets actions from actions.cpp into pets.cpp
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r-- | src/actions/pets.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp index 79e004f15..01542edf4 100644 --- a/src/actions/pets.cpp +++ b/src/actions/pets.cpp @@ -217,4 +217,18 @@ impHandler(petMove) return false; } +impHandler0(petFeed) +{ + if (petHandler != nullptr) + petHandler->feed(); + return true; +} + +impHandler0(petDropLoot) +{ + if (petHandler != nullptr) + petHandler->dropLoot(); + return true; +} + } // namespace Actions |