/ [w3loader] / ghost / src / game.cpp
To checkout: svn checkout http://svn.gnu.org.ua/sources/w3loader/ghost/src/game.cpp
Puszcza

Diff of /ghost/src/game.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by zombieteam, Fri Nov 30 09:12:38 2018 UTC revision 5 by zombieteam, Tue Jun 2 19:44:46 2020 UTC
# Line 329  Line 329 
329    
330  void CGame :: EventPlayerAction( CGamePlayer *player, CIncomingAction *action )  void CGame :: EventPlayerAction( CGamePlayer *player, CIncomingAction *action )
331  {  {
332            if( m_GHost->m_KickGameSaver && !action->GetAction( )->empty( ) && (*action->GetAction( ))[0] == 6 )
333            {
334                    SendAllChat( player->GetName( ) + " kicked out when trying to save the game" );
335                    player->SetDeleteMe( true );
336                    player->SetLeftCode( PLAYERLEAVE_GPROXY );
337                    player->SetLeftReason( "Save game not allowed" );
338                    delete action;
339                    return;
340            }
341    
342          CBaseGame :: EventPlayerAction( player, action );          CBaseGame :: EventPlayerAction( player, action );
343    
344          // give the stats class a chance to process the action          // give the stats class a chance to process the action

Legend:
Removed from v.4  
changed lines
  Added in v.5

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20