summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-22 17:58:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-22 17:58:11 +0300
commitb6f49d9db7221c762652e94e6a52b50d4b4bc913 (patch)
tree72a3326e1736ec6b4999b6782f5f51b9e6297b8e /src/net/eathena/pethandler.cpp
parent7d268331bf19c15b601251a4ff8947fa80e1cd48 (diff)
downloadplus-b6f49d9db7221c762652e94e6a52b50d4b4bc913.tar.gz
plus-b6f49d9db7221c762652e94e6a52b50d4b4bc913.tar.bz2
plus-b6f49d9db7221c762652e94e6a52b50d4b4bc913.tar.xz
plus-b6f49d9db7221c762652e94e6a52b50d4b4bc913.zip
eathena: add messages about pet feed result.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 8daa34709..963ef0cc3 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -287,8 +287,12 @@ void PetHandler::processPetStatus(Net::MessageIn &msg)
void PetHandler::processPetFood(Net::MessageIn &msg)
{
// +++ need show notification message about success or fail
- msg.readUInt8("result");
+ const int result = msg.readUInt8("result");
msg.readInt16("food id");
+ if (result)
+ NotifyManager::notify(NotifyTypes::PET_FEED_OK);
+ else
+ NotifyManager::notify(NotifyTypes::PET_FEED_ERROR);
}
void PetHandler::requestStatus() const