diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-08 15:09:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-08 15:09:19 +0300 |
commit | 83b27b146211fe301f751a6aed27e22271190795 (patch) | |
tree | 0da6e720a250661030a0221ef444c8884a1dbe13 /src/net/ea | |
parent | c9a31afec60a5085e0a3dbd26c15db397730a768 (diff) | |
download | manaplus-83b27b146211fe301f751a6aed27e22271190795.tar.gz manaplus-83b27b146211fe301f751a6aed27e22271190795.tar.bz2 manaplus-83b27b146211fe301f751a6aed27e22271190795.tar.xz manaplus-83b27b146211fe301f751a6aed27e22271190795.zip |
Add strong typed bool IsTempSprite.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/beingrecv.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/beingrecv.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp index 154243258..c37cf2f82 100644 --- a/src/net/ea/beingrecv.cpp +++ b/src/net/ea/beingrecv.cpp @@ -548,7 +548,7 @@ void BeingRecv::setSprite(Being *const being, const std::string &color, const ItemColor colorId, const IsWeapon isWeapon, - const bool isTempSprite) + const IsTempSprite isTempSprite) { if (!being) return; diff --git a/src/net/ea/beingrecv.h b/src/net/ea/beingrecv.h index f68d87880..200059327 100644 --- a/src/net/ea/beingrecv.h +++ b/src/net/ea/beingrecv.h @@ -24,6 +24,7 @@ #define NET_EA_BEINGRECV_H #include "enums/simpletypes/beingid.h" +#include "enums/simpletypes/istempsprite.h" #include "enums/simpletypes/isweapon.h" #include "enums/simpletypes/itemcolor.h" @@ -54,12 +55,13 @@ namespace Ea void processBeingMove3(Net::MessageIn &msg); Being *createBeing(const BeingId id, const int job); - void setSprite(Being *const being, const unsigned int slot, + void setSprite(Being *const being, + const unsigned int slot, const int id, const std::string &color = "", const ItemColor colorId = ItemColor_one, const IsWeapon isWeapon = IsWeapon_false, - const bool isTempSprite = false); + const IsTempSprite isTempSprite = IsTempSprite_false); } // namespace BeingRecv } // namespace Ea |