summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-01 22:24:36 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-09 13:48:52 +0100
commitc05a1db88d2a81b5aa93881c9791bcaadaad6304 (patch)
treed73dffe098cee08330fc73b1a66cc8e640f39ad8 /src/Entities/Player.cpp
parentFix Linux compile (diff)
downloadcuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar.gz
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar.bz2
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar.lz
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar.xz
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.tar.zst
cuberite-c05a1db88d2a81b5aa93881c9791bcaadaad6304.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index f4039e548..2a62931ab 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -38,10 +38,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
, m_Inventory(*this)
, m_CurrentWindow(NULL)
, m_InventoryWindow(NULL)
- , m_TimeLastPickupCheck(0.f)
, m_Color('-')
- , m_LastBlockActionTime(0)
- , m_LastBlockActionCnt(0)
, m_GameMode(eGameMode_NotSet)
, m_IP("")
, m_ClientHandle(a_Client)
@@ -79,7 +76,6 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
m_LastPlayerListTime = t1.GetNowTime();
m_TimeLastTeleportPacket = 0;
- m_TimeLastPickupCheck = 0;
m_PlayerName = a_PlayerName;
m_bDirtyPosition = true; // So chunks are streamed to player at spawn
@@ -1055,27 +1051,6 @@ void cPlayer::CloseWindowIfID(char a_WindowID, bool a_CanRefuse)
-void cPlayer::SetLastBlockActionTime()
-{
- if (m_World != NULL)
- {
- m_LastBlockActionTime = m_World->GetWorldAge() / 20.0f;
- }
-}
-
-
-
-
-
-void cPlayer::SetLastBlockActionCnt( int a_LastBlockActionCnt )
-{
- m_LastBlockActionCnt = a_LastBlockActionCnt;
-}
-
-
-
-
-
void cPlayer::SetGameMode(eGameMode a_GameMode)
{
if ((a_GameMode < gmMin) || (a_GameMode >= gmMax))