From 6027c3d0b8417c951b92f37e80cb6f99ebf40e67 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Thu, 10 Nov 2011 16:30:14 +0000 Subject: Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work. git-svn-id: http://mc-server.googlecode.com/svn/trunk@87 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/cPlayer.h') diff --git a/source/cPlayer.h b/source/cPlayer.h index 08234df88..adefd7fdc 100644 --- a/source/cPlayer.h +++ b/source/cPlayer.h @@ -33,9 +33,11 @@ public: int GetGameMode() { return m_GameMode; } //tolua_export std::string GetIP() { return m_IP; } //tolua_export - float GetLastBlockActionTime() { return m_LastBlockActionTime; } //return LastBlockActionTime for player. - void SetLastBlockActionTime(); - void SetGameMode( int a_GameMode ); + float GetLastBlockActionTime() { return m_LastBlockActionTime; } //tolua_export + int GetLastBlockActionCnt() { return m_LastBlockActionCnt; } //tolua_export + void SetLastBlockActionCnt( int ); //tolua_export + void SetLastBlockActionTime(); //tolua_export + void SetGameMode( int a_GameMode ); //tolua_export void SetIP( std::string a_IP ); // Tries to move to a new position, with collision checks and stuff @@ -105,6 +107,7 @@ protected: float m_BurnPeriod; float m_LastBlockActionTime; + int m_LastBlockActionCnt; int m_GameMode; std::string m_IP; -- cgit v1.2.3