cstrike15_src/game/server/base_gameinterface.cpp
2025-06-04 03:22:50 +02:00

33 lines
991 B
C++

//========= Copyright © 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 )
{
}