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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user