1
0

Fixed tolua error with static initialization

This commit is contained in:
archshift 2014-08-10 17:13:14 -07:00
parent 92f67789fc
commit a7eb4032ee
2 changed files with 12 additions and 3 deletions

View File

@ -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) :

View File

@ -29,12 +29,12 @@ class cPlayer :
typedef cPawn super;
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 */
static const int EATING_TICKS = 30;
static const int EATING_TICKS;
// tolua_end