summaryrefslogtreecommitdiff
path: root/src/net/eathena/familyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-20 17:15:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-20 17:39:01 +0300
commit3005870980cf3fe86d42a75b8303c208354b6573 (patch)
tree584a95d24382237bbf9bbe77da2e058f6e4c4119 /src/net/eathena/familyhandler.cpp
parentcefe3bc037ccbf3f82b387d0484e9c81bed670f3 (diff)
downloadplus-3005870980cf3fe86d42a75b8303c208354b6573.tar.gz
plus-3005870980cf3fe86d42a75b8303c208354b6573.tar.bz2
plus-3005870980cf3fe86d42a75b8303c208354b6573.tar.xz
plus-3005870980cf3fe86d42a75b8303c208354b6573.zip
Impliment packets SMSG_FAMILY_ASK_FOR_CHILD.
Diffstat (limited to 'src/net/eathena/familyhandler.cpp')
-rw-r--r--src/net/eathena/familyhandler.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp
index 961d8877d..36297bb61 100644
--- a/src/net/eathena/familyhandler.cpp
+++ b/src/net/eathena/familyhandler.cpp
@@ -35,8 +35,8 @@ namespace EAthena
FamilyHandler::FamilyHandler()
{
- FamilyRecv::mParent1 = 0;
- FamilyRecv::mParent2 = 0;
+ FamilyRecv::mParent1 = BeingId_zero;
+ FamilyRecv::mParent2 = BeingId_zero;
familyHandler = this;
}
@@ -53,9 +53,11 @@ void FamilyHandler::askForChild(const Being *const being) const
void FamilyHandler::askForChildReply(const bool accept) const
{
createOutPacket(CMSG_FAMILY_ASK_FOR_CHILD_REPLY);
- outMsg.writeInt32(FamilyRecv::mParent1, "parent1");
- outMsg.writeInt32(FamilyRecv::mParent2, "parent2");
- outMsg.writeInt32(accept ? 0: 1, "result");
+ outMsg.writeBeingId(FamilyRecv::mParent1, "parent1");
+ outMsg.writeBeingId(FamilyRecv::mParent2, "parent2");
+ outMsg.writeInt32(accept ? 1 : 0, "result");
+ FamilyRecv::mParent1 = BeingId_zero;
+ FamilyRecv::mParent2 = BeingId_zero;
}
} // namespace EAthena