From c9a31afec60a5085e0a3dbd26c15db397730a768 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Jun 2016 14:30:28 +0300 Subject: Add strong typed bool IsWeapon. --- src/being/being.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/being/being.h') diff --git a/src/being/being.h b/src/being/being.h index 296038876..ad31cd144 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -28,6 +28,7 @@ #include "enums/gui/usercolorid.h" +#include "enums/simpletypes/isweapon.h" #include "enums/simpletypes/move.h" #include "resources/beinginfo.h" @@ -321,14 +322,14 @@ class Being notfinal : public ActorSprite, const int id, std::string color = "", const ItemColor colorId = ItemColor_one, - const bool isWeapon = false, + const IsWeapon isWeapon = IsWeapon_false, const bool isTempSprite = false) restrict2; void updateSprite(const unsigned int slot, const int id, const std::string &restrict color = "", const ItemColor colorId = ItemColor_one, - const bool isWeapon = false, + const IsWeapon isWeapon = IsWeapon_false, const bool isTempSprite = false) restrict2; void setSpriteID(const unsigned int slot, -- cgit v1.2.3-70-g09d2