From 83b27b146211fe301f751a6aed27e22271190795 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jun 2016 15:09:19 +0300 Subject: Add strong typed bool IsTempSprite. --- src/net/ea/beingrecv.cpp | 2 +- src/net/ea/beingrecv.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/net/ea') 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 -- cgit v1.2.3-70-g09d2