Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
991 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "gameinterface.h"
  8. #include "mapentities.h"
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. void CServerGameClients::GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers ) const
  12. {
  13. #ifdef PORTAL2
  14. minplayers = defaultMaxPlayers = 1;
  15. maxplayers = CommandLine()->FindParm( "-allowspectators" ) ? 3 : 2;
  16. #else
  17. minplayers = defaultMaxPlayers = 1;
  18. maxplayers = MAX_PLAYERS;
  19. #endif
  20. }
  21. // -------------------------------------------------------------------------------------------- //
  22. // Mod-specific CServerGameDLL implementation.
  23. // -------------------------------------------------------------------------------------------- //
  24. void CServerGameDLL::LevelInit_ParseAllEntities( const char *pMapEntities )
  25. {
  26. }