Fixed tolua error with static initialization
This commit is contained in:
parent
92f67789fc
commit
a7eb4032ee
@ -33,6 +33,15 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const int cPlayer::MAX_HEALTH = 20;
|
||||||
|
|
||||||
|
const int cPlayer::MAX_FOOD_LEVEL = 20;
|
||||||
|
|
||||||
|
/** Number of ticks it takes to eat an item */
|
||||||
|
const int cPlayer::EATING_TICKS = 30;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) :
|
cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) :
|
||||||
|
@ -29,12 +29,12 @@ class cPlayer :
|
|||||||
typedef cPawn super;
|
typedef cPawn super;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const int MAX_HEALTH = 20;
|
static const int MAX_HEALTH;
|
||||||
|
|
||||||
static const int MAX_FOOD_LEVEL = 20;
|
static const int MAX_FOOD_LEVEL;
|
||||||
|
|
||||||
/** Number of ticks it takes to eat an item */
|
/** Number of ticks it takes to eat an item */
|
||||||
static const int EATING_TICKS = 30;
|
static const int EATING_TICKS;
|
||||||
|
|
||||||
// tolua_end
|
// tolua_end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user