summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 1e51aa3b5..baf6d1056 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -66,6 +66,7 @@ PetHandler::PetHandler() :
SMSG_PET_EGGS_LIST,
SMSG_PET_DATA,
SMSG_PET_STATUS,
+ SMSG_PET_FOOD,
0
};
handledMessages = _messages;
@@ -97,6 +98,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg)
processPetStatus(msg);
break;
+ case SMSG_PET_FOOD:
+ processPetFood(msg);
+ break;
+
default:
break;
}
@@ -270,4 +275,11 @@ void PetHandler::processPetStatus(Net::MessageIn &msg)
info->race = race;
}
+void PetHandler::processPetFood(Net::MessageIn &msg)
+{
+ // +++ need show notification message about success or fail
+ msg.readUInt8("result");
+ msg.readInt16("food id");
+}
+
} // namespace EAthena