1
0

Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@82 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
admin@omencraft.com
2011-11-09 22:17:30 +00:00
parent 9e77db8e3d
commit 18b7563680
6 changed files with 79 additions and 3 deletions

View File

@@ -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