summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cPlayer.cpp')
-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;