From 48f84cc3e9204d8481aab32a3c51da5f29fd4306 Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Mon, 24 Aug 2015 23:05:15 +0200 Subject: changed mob age from char to int --- src/Mobs/Monster.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Mobs/Monster.h') diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 22280110c..963ac9148 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -117,8 +117,8 @@ public: // tolua_begin bool IsBaby (void) const { return m_Age < 0; } - char GetAge (void) const { return m_Age; } - void SetAge(char a_Age) { m_Age = a_Age; } + int GetAge (void) const { return m_Age; } + void SetAge(int a_Age) { m_Age = a_Age; } // tolua_end @@ -279,7 +279,7 @@ protected: bool m_BurnsInDaylight; double m_RelativeWalkSpeed; - char m_Age; + int m_Age; /** Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops */ void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0); -- cgit v1.2.3