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.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/cPlayer.cpp') 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; -- cgit v1.2.3