From b6f49d9db7221c762652e94e6a52b50d4b4bc913 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Feb 2015 17:58:11 +0300 Subject: eathena: add messages about pet feed result. --- src/net/eathena/pethandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net') 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 -- cgit v1.2.3-70-g09d2