summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-09 23:17:30 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-09 23:17:30 +0100
commit18b75636806a6fb7be0692d0350f54be4fa75348 (patch)
treece486f07ad284818afee6254b0e3ac0283b64428 /source/cPlayer.cpp
parentbugfix to redstone, it can climb walls again. (diff)
downloadcuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.gz
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.bz2
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.lz
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.xz
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.zst
cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.zip
Diffstat (limited to 'source/cPlayer.cpp')
-rw-r--r--source/cPlayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp
index 62098eb0b..8aefd36ba 100644
--- a/source/cPlayer.cpp
+++ b/source/cPlayer.cpp
@@ -61,6 +61,7 @@ struct cPlayer::sPlayerState
cPlayer::cPlayer(cClientHandle* a_Client, const char* a_PlayerName)
: m_bBurnable(true)
, m_GameMode( 0 )
+ , m_IP("")
, m_LastBlockActionTime( 0 )
, e_EPMetaState(NORMAL)
, m_bVisible( true )
@@ -419,6 +420,10 @@ void cPlayer::SetGameMode( int a_GameMode )
m_GameMode = a_GameMode;
}
+void cPlayer::SetIP( std::string a_IP )
+{
+ m_IP = a_IP;
+}
#ifdef SendMessage // Cause stupid windows.h defines SendMessage as SendMessageA
#undef SendMessage