core/PlayerManager.cpp
changeset 1576 f36378b2d71f
parent 1544 feff70182207
child 1621 ac5d4c68a99a
     1.1 --- a/core/PlayerManager.cpp	Mon Oct 15 18:51:11 2007 +0000
     1.2 +++ b/core/PlayerManager.cpp	Mon Oct 15 18:51:56 2007 +0000
     1.3 @@ -38,13 +38,13 @@
     1.4  #include "MenuStyle_Radio.h"
     1.5  #include "sm_stringutil.h"
     1.6  #include "CoreConfig.h"
     1.7 -#include <inetchannel.h>
     1.8 -#include <iclient.h>
     1.9  #include "TimerSys.h"
    1.10  #include "Translator.h"
    1.11  #include "Logger.h"
    1.12  #include "ChatTriggers.h"
    1.13  #include "HalfLife2.h"
    1.14 +#include <inetchannel.h>
    1.15 +#include <iclient.h>
    1.16  
    1.17  PlayerManager g_Players;
    1.18  bool g_OnMapStarted = false;
    1.19 @@ -1001,6 +1001,7 @@
    1.20  
    1.21  void CPlayer::Kick(const char *str)
    1.22  {
    1.23 +	MarkAsBeingKicked();
    1.24  	INetChannel *pNetChan = static_cast<INetChannel *>(engine->GetPlayerNetInfo(m_iIndex));
    1.25  	IClient *pClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
    1.26  	pClient->Disconnect("%s", str);