summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-10 17:30:14 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-10 17:30:14 +0100
commit6027c3d0b8417c951b92f37e80cb6f99ebf40e67 (patch)
treee3169e73472f4937c5bb23678bd46d79e89feeac /source/cPlayer.cpp
parentFixed doors. I forgot to actually return proper Hex value. Started work on adding farmland, farming, and leaf decay support. (diff)
downloadcuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar.gz
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar.bz2
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar.lz
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar.xz
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.tar.zst
cuberite-6027c3d0b8417c951b92f37e80cb6f99ebf40e67.zip
Diffstat (limited to '')
-rw-r--r--source/cPlayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp
index 8aefd36ba..706886d88 100644
--- a/source/cPlayer.cpp
+++ b/source/cPlayer.cpp
@@ -63,6 +63,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const char* a_PlayerName)
, m_GameMode( 0 )
, m_IP("")
, m_LastBlockActionTime( 0 )
+ , m_LastBlockActionCnt( 0 )
, e_EPMetaState(NORMAL)
, m_bVisible( true )
, m_LastGroundHeight( 0 )
@@ -415,6 +416,11 @@ void cPlayer::SetLastBlockActionTime()
m_LastBlockActionTime = cRoot::Get()->GetWorld()->GetTime();
}
+void cPlayer::SetLastBlockActionCnt( int a_LastBlockActionCnt )
+{
+ m_LastBlockActionCnt = a_LastBlockActionCnt;
+}
+
void cPlayer::SetGameMode( int a_GameMode )
{
m_GameMode = a_GameMode;