33 lines
991 B
C++
33 lines
991 B
C++
|
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
//=============================================================================//
|
|||
|
|
|||
|
#include "cbase.h"
|
|||
|
#include "gameinterface.h"
|
|||
|
#include "mapentities.h"
|
|||
|
|
|||
|
// memdbgon must be the last include file in a .cpp file!!!
|
|||
|
#include "tier0/memdbgon.h"
|
|||
|
|
|||
|
void CServerGameClients::GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers ) const
|
|||
|
{
|
|||
|
#ifdef PORTAL2
|
|||
|
minplayers = defaultMaxPlayers = 1;
|
|||
|
maxplayers = CommandLine()->FindParm( "-allowspectators" ) ? 3 : 2;
|
|||
|
#else
|
|||
|
minplayers = defaultMaxPlayers = 1;
|
|||
|
maxplayers = MAX_PLAYERS;
|
|||
|
#endif
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
// -------------------------------------------------------------------------------------------- //
|
|||
|
// Mod-specific CServerGameDLL implementation.
|
|||
|
// -------------------------------------------------------------------------------------------- //
|
|||
|
|
|||
|
void CServerGameDLL::LevelInit_ParseAllEntities( const char *pMapEntities )
|
|||
|
{
|
|||
|
}
|