diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-13 16:22:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-13 16:22:46 +0300 |
commit | f40b3cd12dd2e2c65d02816c450e5645fba84109 (patch) | |
tree | 280e582f4a188cacc97973be3994a24b38218ed2 /src/net/eathena/beingrecv.cpp | |
parent | 767e9a19a27ecf4b7f5ea88e958c818fc56db9fd (diff) | |
download | mv-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.gz mv-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.bz2 mv-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.xz mv-f40b3cd12dd2e2c65d02816c450e5645fba84109.zip |
For skill units in context menu show creator name or id.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index c5c7acfcc..18c8c11b5 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -1186,7 +1186,7 @@ void BeingRecv::processSkillEntry(Net::MessageIn &msg) { msg.readInt16("len"); const BeingId id = msg.readBeingId("skill unit id"); - msg.readBeingId("creator accound id"); + const BeingId creatorId = msg.readBeingId("creator accound id"); const int x = msg.readInt16("x"); const int y = msg.readInt16("y"); const int job = msg.readInt32("job"); @@ -1199,6 +1199,7 @@ void BeingRecv::processSkillEntry(Net::MessageIn &msg) dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(x, y); dstBeing->setLevel(level); + dstBeing->setCreatorId(creatorId); } void BeingRecv::processPlaterStatusChange(Net::MessageIn &msg) @@ -1757,7 +1758,7 @@ void BeingRecv::processSolveCharName(Net::MessageIn &msg) void BeingRecv::processGraffiti(Net::MessageIn &msg) { const BeingId id = msg.readBeingId("graffiti id"); - msg.readBeingId("creator id"); + const BeingId creatorId = msg.readBeingId("creator id"); const int x = msg.readInt16("x"); const int y = msg.readInt16("y"); const int job = msg.readUInt8("job"); @@ -1773,6 +1774,7 @@ void BeingRecv::processGraffiti(Net::MessageIn &msg) dstBeing->setTileCoords(x, y); dstBeing->setShowName(true); dstBeing->setName(text); + dstBeing->setCreatorId(creatorId); } void BeingRecv::applyPlayerAction(Net::MessageIn &msg, |