summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 18:37:06 +0300
commitc25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 (patch)
treeac124c630bc17ef10a8885a49fbb387f7091d15d /src/net/tmwa/beinghandler.cpp
parent88697bc3503090194877b241b987ddc751034166 (diff)
downloadmanaverse-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.gz
manaverse-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.bz2
manaverse-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.tar.xz
manaverse-c25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31.zip
Add strong typed bool type Enable.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 580b4b3f2..8277e4805 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -1329,7 +1329,8 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg)
// Status change
const uint16_t status = msg.readInt16("status");
const int id = msg.readInt32("being id");
- const bool flag = msg.readUInt8("flag: 0: stop, 1: start");
+ const Enable flag = fromBool(
+ msg.readUInt8("flag: 0: stop, 1: start"), Enable);
Being *const dstBeing = actorManager->findBeing(id);
if (dstBeing)