UFO: Alien Invasion
|
Main server code? More...
#include "server.h"
#include "sv_log.h"
#include "../ports/system.h"
#include "../shared/scopedmutex.h"
#include "../shared/thread.h"
Go to the source code of this file.
Data Structures | |
struct | leakyBucket_s |
Macros | |
#define | MAX_BUCKETS 16384 |
#define | MAX_HASHES 1024 |
#define | HEARTBEAT_SECONDS 30 |
#define | PING_SECONDS 5 |
Typedefs | |
typedef struct leakyBucket_s | leakyBucket_t |
Functions | |
char * | SV_GetConfigString (int index) |
int | SV_GetConfigStringLength (int index) |
int | SV_GetConfigStringInteger (int index) |
char * | SV_SetConfigString (int index,...) |
client_t * | SV_GetNextClient (client_t *lastClient) |
Iterates through clients. More... | |
client_t * | SV_GetClient (int index) |
void | SV_DropClient (client_t *drop, const char *message) |
Called when the player is totally leaving the server, either willingly or unwillingly. This is NOT called if the entire server is quitting or crashing. More... | |
static leakyBucket_t * | SVC_BucketForAddress (struct net_stream &address, int burst, int period) |
Find or allocate a bucket for an address. More... | |
static bool | SVC_RateLimit (leakyBucket_t *bucket, int burst=10, int period=100) |
static bool | SVC_RateLimitAddress (struct net_stream &from, int burst=10, int period=1000) |
Rate limit for a particular address. More... | |
static void | SVC_TeamInfo (struct net_stream *s) |
Responds with teaminfo such as free team num. More... | |
static void | SVC_Status (struct net_stream *s) |
Responds with all the info that the server browser can see. More... | |
static void | SVC_Info (struct net_stream *s) |
Responds with short info for broadcast scans. More... | |
static void | SVC_DirectConnect (struct net_stream *stream) |
A connection request that did not come from the master. More... | |
static bool | Rcon_Validate (const char *password) |
Checks whether the remote connection is allowed (rcon_password must be set on the server) - and verify the user given password with the cvar value. More... | |
static void | SVC_RemoteCommand (struct net_stream *stream) |
A client issued an rcon command. Shift down the remaining args. Redirect all printfs. More... | |
static void | SV_ConnectionlessPacket (struct net_stream *stream, dbuffer *msg) |
Handles a connectionless message from a client. More... | |
void | SV_ReadPacket (struct net_stream *s) |
static int | Master_HeartbeatThread (void *data) |
Send a message to the master every few minutes to let it know we are alive, and log information. More... | |
static void | Master_Heartbeat (void) |
static void | SV_CheckSpawnSoldiers (void) |
If all connected clients have set their ready flag the server will spawn the clients and that change the client state. More... | |
static void | SV_CheckStartMatch (void) |
static void | SV_PingPlayers (void) |
static void | SV_CheckTimeouts (void) |
void | SV_Frame (int now, void *data) |
static void | Master_Shutdown (void) |
Informs all masters that this server is going down. More... | |
void | SV_UserinfoChanged (client_t *cl) |
Pull specific info from a newly changed userinfo string into a more C friendly form. More... | |
static bool | SV_CheckMaxSoldiersPerPlayer (cvar_t *cvar) |
mapData_t * | SV_GetMapData (void) |
mapTiles_t * | SV_GetMapTiles (void) |
void | SV_Init (void) |
Only called once at startup, not for each game. More... | |
static void | SV_FinalMessage (const char *message, bool reconnect) |
Used by SV_Shutdown to send a final message to all connected clients before the server goes down. More... | |
void | SV_Clear (void) |
Cleanup when the whole game process is shutting down. More... | |
void | SV_Shutdown (const char *finalmsg, bool reconnect) |
Called when each game quits, before Sys_Quit or Sys_Error. More... | |
void | SV_ShutdownWhenEmpty (void) |
Will eventually shutdown the server once all clients have disconnected. More... | |
int | SV_CountPlayers (void) |
Returns the number of spawned players. More... | |
Variables | |
static cvar_t * | rcon_password |
static cvar_t * | sv_http_downloadserver |
static cvar_t * | sv_enablemorale |
static cvar_t * | sv_maxsoldiersperteam |
static cvar_t * | sv_maxsoldiersperplayer |
static cvar_t * | sv_hostname |
static cvar_t * | sv_reconnect_limit |
static cvar_t * | sv_timeout |
cvar_t * | sv_maxclients = nullptr |
cvar_t * | sv_dumpmapassembly |
cvar_t * | sv_threads |
cvar_t * | sv_rma |
cvar_t * | sv_rmadisplaythemap |
display a character graphic of the tiles placed when RMA2 reaches a dead end. More... | |
cvar_t * | sv_public |
cvar_t * | sv_mapname |
memPool_t * | sv_genericPool |
static leakyBucket_t | buckets [MAX_BUCKETS] |
static leakyBucket_t * | bucketHashes [MAX_HASHES] |
static leakyBucket_t | outboundLeakyBucket |
static SDL_Thread * | masterServerHeartBeatThread |
Main server code?
Definition in file sv_main.cpp.
#define HEARTBEAT_SECONDS 30 |
Definition at line 690 of file sv_main.cpp.
Referenced by Master_Heartbeat().
#define MAX_BUCKETS 16384 |
Definition at line 70 of file sv_main.cpp.
Referenced by SVC_BucketForAddress().
#define MAX_HASHES 1024 |
Definition at line 71 of file sv_main.cpp.
Referenced by SVC_BucketForAddress().
#define PING_SECONDS 5 |
Definition at line 791 of file sv_main.cpp.
Referenced by SV_PingPlayers().
typedef struct leakyBucket_s leakyBucket_t |
Definition at line 714 of file sv_main.cpp.
References Com_CreateThread(), HEARTBEAT_SECONDS, cvar_s::integer, serverInstanceStatic_s::lastHeartbeat, Master_HeartbeatThread(), masterServerHeartBeatThread, serverInstanceStatic_s::realtime, sv_dedicated, and svs.
Referenced by SV_Frame().
Send a message to the master every few minutes to let it know we are alive, and log information.
Definition at line 698 of file sv_main.cpp.
References Com_Printf(), Com_sprintf(), HTTP_GetURL(), masterserver_url, masterServerHeartBeatThread, port, and cvar_s::string.
Referenced by Master_Heartbeat().
Informs all masters that this server is going down.
Definition at line 906 of file sv_main.cpp.
References HTTP_GetURL(), cvar_s::integer, masterserver_url, port, cvar_s::string, sv_dedicated, and va().
Referenced by SV_Shutdown().
|
inlinestatic |
Checks whether the remote connection is allowed (rcon_password must be set on the server) - and verify the user given password with the cvar value.
Definition at line 569 of file sv_main.cpp.
References Q_streq, Q_strnull(), and cvar_s::string.
Referenced by SVC_RemoteCommand().
|
static |
Definition at line 941 of file sv_main.cpp.
References Cvar_AssertValue(), and MAX_ACTIVETEAM.
Referenced by SV_Init().
If all connected clients have set their ready flag the server will spawn the clients and that change the client state.
Definition at line 742 of file sv_main.cpp.
References cl, CL_SPAWNSOLDIERS, cs_began, cs_free, SrvPlayer::isReady(), client_s::player, serverInstanceGame_s::spawned, client_s::state, sv, SV_ClientCommand(), and SV_GetNextClient().
Referenced by SV_Frame().
Definition at line 764 of file sv_main.cpp.
References cl, CL_STARTMATCH, cs_free, cs_spawned, cvar_s::integer, serverInstanceGame_s::spawned, serverInstanceGame_s::started, client_s::state, sv, SV_ClientCommand(), SV_GetClient(), and SV_GetNextClient().
Referenced by SV_Frame().
Definition at line 813 of file sv_main.cpp.
References cl, cs_free, cvar_s::integer, client_s::lastmessage, serverInstanceStatic_s::realtime, client_s::state, SV_DropClient(), SV_GetNextClient(), and svs.
Referenced by SV_Frame().
Cleanup when the whole game process is shutting down.
Definition at line 1030 of file sv_main.cpp.
References SV_LogShutdown(), and SV_MapcycleClear().
Referenced by Com_Quit().
|
static |
Handles a connectionless message from a client.
[out] | stream | The stream to write to |
msg | The message buffer to read the connectionless data from |
Definition at line 638 of file sv_main.cpp.
References Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_Printf(), DEBUG_SERVER, NET_ReadStringLine(), NET_StreamPeerToName(), Q_streq, SV_CMD_CONNECT, SV_CMD_INFO, SV_CMD_RCON, SV_CMD_STATUS, SV_CMD_TEAMINFO, SVC_DirectConnect(), SVC_Info(), SVC_RemoteCommand(), SVC_Status(), and SVC_TeamInfo().
Referenced by SV_ReadPacket().
Returns the number of spawned players.
Definition at line 1096 of file sv_main.cpp.
References cl, count, cs_spawned, serverInstanceStatic_s::initialized, client_s::state, SV_GetNextClient(), and svs.
Referenced by Sys_ConsoleProc().
Called when the player is totally leaving the server, either willingly or unwillingly. This is NOT called if the entire server is quitting or crashing.
Definition at line 184 of file sv_main.cpp.
References serverInstanceStatic_s::abandon, cl, count, cs_connected, cs_free, cs_spawned, cs_spawning, serverInstanceStatic_s::ge, serverInstanceStatic_s::killserver, client_s::name, NET_StreamFinished(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_s::player, PRINT_CHAT, serverInstanceStatic_s::serverMutex, SrvPlayer::setInUse(), client_s::state, client_s::stream, SV_BroadcastPrintf(), SV_GetNextClient(), SV_SetClientState(), svc_disconnect, and svs.
Referenced by SV_Begin_f(), SV_CheckTimeouts(), SV_Disconnect_f(), SV_ExecuteClientMessage(), SV_Kick_f(), SV_New_f(), and SV_StartMatch_f().
|
static |
Used by SV_Shutdown to send a final message to all connected clients before the server goes down.
Definition at line 1002 of file sv_main.cpp.
References cl, cs_connected, NET_StreamFinished(), NET_Wait(), NET_WriteByte(), NET_WriteConstMsg(), NET_WriteString(), client_s::state, client_s::stream, SV_GetNextClient(), svc_disconnect, and svc_reconnect.
Referenced by SV_Shutdown().
Definition at line 837 of file sv_main.cpp.
References serverInstanceStatic_s::abandon, serverInstanceGame_s::assembly, Cbuf_AddText(), Com_Printf(), Com_ReadFromPipe(), Com_SetGameType(), serverInstanceGame_s::endgame, serverInstanceStatic_s::gameFrameCond, serverInstanceStatic_s::initialized, cvar_s::integer, serverInstanceStatic_s::killserver, Master_Heartbeat(), cvar_s::modified, serverInstanceGame_s::name, serverInstanceStatic_s::realtime, sv, SV_CheckSpawnSoldiers(), SV_CheckStartMatch(), SV_CheckTimeouts(), sv_dedicated, sv_gametype, SV_LogHandleOutput(), SV_Map(), SV_NextMapcycle(), SV_PingPlayers(), SV_RunGameFrame(), SV_Shutdown(), svs, and Sys_ConsoleInput().
Referenced by Qcommon_Init().
Definition at line 174 of file sv_main.cpp.
References serverInstanceStatic_s::clients, index, and svs.
Referenced by SV_CheckStartMatch(), SV_New_f(), SV_PlayerPrintf(), and SVC_DirectConnect().
char* SV_GetConfigString | ( | int | index | ) |
Definition at line 77 of file sv_main.cpp.
References Com_CheckConfigStringIndex(), Com_Error(), serverInstanceGame_s::configstrings, ERR_FATAL, index, and sv.
Referenced by SV_FindIndex(), SV_GetConfigStringInteger(), SV_Map(), SV_New_f(), SV_PrintConfigStrings_f(), and TEST_F().
Definition at line 108 of file sv_main.cpp.
References SV_GetConfigString().
Referenced by SV_Map(), and SV_Status_f().
Definition at line 85 of file sv_main.cpp.
References Com_CheckConfigStringIndex(), Com_Error(), CS_ENTITYSTRING, CS_GENERAL, CS_MODELS, CS_PLAYERNAMES, CS_POSITIONS, CS_TILES, ERR_FATAL, MAX_CLIENTS, MAX_ENTITYSTRINGS, MAX_GENERAL, MAX_MODELS, MAX_TILESTRINGS, and MAX_TOKEN_CHARS.
Referenced by SV_ParseUMP().
Definition at line 947 of file sv_main.cpp.
References serverInstanceGame_s::mapData, and sv.
Referenced by CL_RequestNextDownload().
mapTiles_t* SV_GetMapTiles | ( | void | ) |
Definition at line 952 of file sv_main.cpp.
References serverInstanceGame_s::mapTiles, and sv.
Referenced by CL_RequestNextDownload().
Iterates through clients.
[in] | lastClient | Pointer of the client to iterate from. call with nullptr to get the first one. |
Definition at line 152 of file sv_main.cpp.
References serverInstanceStatic_s::clients, cvar_s::integer, and svs.
Referenced by SV_BroadcastPrintf(), SV_CheckSpawnSoldiers(), SV_CheckStartMatch(), SV_CheckTimeouts(), SV_CountPlayers(), SV_DropClient(), SV_FinalMessage(), SV_GetPlayerClientStructure(), SV_Map(), SV_Multicast(), SV_PingPlayers(), SV_StartGame_f(), SV_Status_f(), SVC_DirectConnect(), SVC_Info(), SVC_Status(), and SVC_TeamInfo().
Only called once at startup, not for each game.
Definition at line 960 of file sv_main.cpp.
References Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), CVAR_LATCH, CVAR_NOSET, CVAR_SERVERINFO, Cvar_SetCheckFunction(), DOUBLEQUOTE, MAX_ACTIVETEAM, Mem_CreatePool, Mem_PoolAllocType, OBJZERO, PROTOCOL_VERSION, sv, SV_CheckMaxSoldiersPerPlayer(), SV_InitOperatorCommands(), SV_LogInit(), SV_MapcycleInit(), and svs.
Referenced by Qcommon_Init(), and TEST_Init().
Definition at line 793 of file sv_main.cpp.
References cl, cs_free, serverInstanceStatic_s::lastPing, NET_WriteByte(), NET_WriteMsg(), PING_SECONDS, serverInstanceStatic_s::realtime, client_s::state, client_s::stream, SV_GetNextClient(), svc_ping, and svs.
Referenced by SV_Frame().
void SV_ReadPacket | ( | struct net_stream * | s | ) |
Definition at line 669 of file sv_main.cpp.
References cl, clc_oob, NET_ReadByte(), NET_ReadMsg(), NET_StreamFree(), NET_StreamGetData(), SV_ConnectionlessPacket(), and SV_ExecuteClientMessage().
Referenced by SV_InitGame().
char* SV_SetConfigString | ( | int | index, |
... | |||
) |
Definition at line 113 of file sv_main.cpp.
References Com_CheckConfigStringIndex(), Com_Error(), serverInstanceGame_s::configstrings, CS_LIGHTMAP, CS_MAPCHECKSUM, CS_OBJECTAMOUNT, CS_POSITIONS, CS_TILES, CS_UFOCHECKSUM, ERR_FATAL, index, MAX_TILESTRINGS, MAX_TOKEN_CHARS, Q_strncpyz(), sv, and va().
void SV_Shutdown | ( | const char * | finalmsg, |
bool | reconnect | ||
) |
Called when each game quits, before Sys_Quit or Sys_Error.
[in] | finalmsg | The message all clients get as server shutdown message |
[in] | reconnect | True if this is only a restart (new map or map restart), false if the server shutdown completely and you also want to disconnect all clients |
Definition at line 1042 of file sv_main.cpp.
References serverInstanceStatic_s::clients, Com_Printf(), CVAR_LATCH, CVAR_NOSET, cvar_s::flags, i, serverInstanceStatic_s::initialized, Master_Shutdown(), Mem_Free, sv_model_s::name, NET_DatagramSocketClose(), serverInstanceStatic_s::netDatagramSocket, serverInstanceGame_s::numSVModels, OBJZERO, serverInstanceStatic_s::serverMutex, sv, SV_FinalMessage(), SV_ShutdownGameProgs(), SV_Stop(), serverInstanceGame_s::svModels, and svs.
Referenced by Com_Error(), Com_Quit(), Com_SetServerState(), GAME_Drop(), GAME_GetImportData(), Qcommon_Frame(), SV_Frame(), SV_KillServer_f(), and TEST_Shutdown().
Will eventually shutdown the server once all clients have disconnected.
Definition at line 1085 of file sv_main.cpp.
References serverInstanceStatic_s::abandon, Com_SetServerState(), ss_dead, and svs.
Referenced by GAME_GetImportData().
Pull specific info from a newly changed userinfo string into a more C friendly form.
Definition at line 921 of file sv_main.cpp.
References Com_DPrintf(), DEBUG_SERVER, serverInstanceStatic_s::ge, i, Info_IntegerForKey(), Info_ValueForKey(), client_s::messagelevel, client_s::name, client_s::player, Q_strncpyz(), serverInstanceStatic_s::serverMutex, svs, and client_s::userinfo.
Referenced by SV_ExecuteClientMessage(), and SVC_DirectConnect().
|
static |
Find or allocate a bucket for an address.
Definition at line 227 of file sv_main.cpp.
References leakyBucket_s::burst, Com_HashKey(), leakyBucket_s::hash, hash, i, leakyBucket_s::lastTime, MAX_BUCKETS, MAX_HASHES, NET_StreamPeerToName(), leakyBucket_s::next, leakyBucket_s::node, OBJZERO, leakyBucket_s::prev, Q_streq, Q_strncpyz(), Q_strnull(), and Sys_Milliseconds().
Referenced by SVC_RateLimitAddress().
|
static |
A connection request that did not come from the master.
Definition at line 462 of file sv_main.cpp.
References cl, CL_CMD_CLIENT_CONNECT, Cmd_Argv(), Com_DPrintf(), Com_Printf(), cs_connected, cs_free, DEBUG_SERVER, serverInstanceStatic_s::ge, Info_SetValueForKey(), Info_ValueForKey(), client_s::lastmessage, MAX_INFO_STRING, NET_OOB_Printf(), NET_StreamPeerToName(), NET_StreamSetData(), OBJZERO, client_s::peername, client_s::player, PLAYER_NUM, PROTOCOL_VERSION, Q_strncpyz(), Q_strnull(), serverInstanceStatic_s::realtime, REJ_CONNECTION_REFUSED, REJ_GAME_ALREADY_STARTED, REJ_SERVER_FULL, REJ_SERVER_VERSION_MISMATCH, serverInstanceStatic_s::serverMutex, SrvPlayer::setInUse(), SrvPlayer::setNum(), serverInstanceGame_s::spawned, serverInstanceGame_s::started, client_s::state, client_s::stream, cvar_s::string, sv, SV_CMD_PRINT, SV_GetClient(), SV_GetNextClient(), SV_SetClientState(), SV_UserinfoChanged(), svs, and client_s::userinfo.
Referenced by SV_ConnectionlessPacket().
|
static |
Responds with short info for broadcast scans.
Definition at line 411 of file sv_main.cpp.
References cl, Cmd_Argv(), Com_DPrintf(), Com_sprintf(), count, cs_spawning, DEBUG_SERVER, DOUBLEQUOTE, Info_SetValueForKey(), Info_SetValueForKeyAsInteger(), cvar_s::integer, MAX_INFO_STRING, MAX_VAR, serverInstanceGame_s::name, NET_OOB_Printf(), NET_StreamToString(), PROTOCOL_VERSION, client_s::state, cvar_s::string, sv, SV_CMD_INFO, SV_CMD_PRINT, sv_dedicated, sv_gametype, SV_GetNextClient(), SVC_RateLimit(), SVC_RateLimitAddress(), and UFO_VERSION.
Referenced by SV_ConnectionlessPacket().
|
static |
Definition at line 284 of file sv_main.cpp.
References leakyBucket_s::burst, leakyBucket_s::lastTime, and Sys_Milliseconds().
Referenced by SVC_Info(), SVC_RateLimitAddress(), SVC_RemoteCommand(), SVC_Status(), and SVC_TeamInfo().
|
static |
Rate limit for a particular address.
Definition at line 313 of file sv_main.cpp.
References leakyBucket_s::burst, SVC_BucketForAddress(), and SVC_RateLimit().
Referenced by SVC_Info(), SVC_RemoteCommand(), SVC_Status(), and SVC_TeamInfo().
|
static |
A client issued an rcon command. Shift down the remaining args. Redirect all printfs.
Definition at line 585 of file sv_main.cpp.
References BAD_RCON_PASSWORD, Cmd_Argc(), Cmd_Argv(), Cmd_ExecuteString(), Com_BeginRedirect(), Com_DPrintf(), Com_EndRedirect(), Com_Printf(), DEBUG_SERVER, i, NET_StreamPeerToName(), Q_strcat(), Rcon_Validate(), SVC_RateLimit(), and SVC_RateLimitAddress().
Referenced by SV_ConnectionlessPacket().
|
static |
Responds with all the info that the server browser can see.
Definition at line 370 of file sv_main.cpp.
References cl, Com_DPrintf(), Com_sprintf(), cs_free, Cvar_Serverinfo(), DEBUG_SERVER, serverInstanceStatic_s::ge, MAX_INFO_STRING, client_s::name, NET_StreamToString(), NET_WriteByte(), NET_WriteMsg(), NET_WriteRawString(), client_s::player, client_s::state, SV_CMD_PRINT, SV_GetNextClient(), svc_oob, SVC_RateLimit(), SVC_RateLimitAddress(), and svs.
Referenced by SV_ConnectionlessPacket().
|
static |
Responds with teaminfo such as free team num.
Definition at line 323 of file sv_main.cpp.
References cl, Com_DPrintf(), cs_connected, Cvar_GetString(), DEBUG_SERVER, serverInstanceStatic_s::ge, Info_SetValueForKey(), Info_SetValueForKeyAsInteger(), MAX_INFO_STRING, client_s::name, NET_StreamToString(), NET_WriteByte(), NET_WriteMsg(), NET_WriteRawString(), NET_WriteString(), client_s::player, client_s::state, SV_GetNextClient(), svc_oob, SVC_RateLimit(), SVC_RateLimitAddress(), svs, and TEAM_NO_ACTIVE.
Referenced by SV_ConnectionlessPacket().
|
static |
Definition at line 74 of file sv_main.cpp.
|
static |
Definition at line 73 of file sv_main.cpp.
|
static |
Definition at line 692 of file sv_main.cpp.
Referenced by Master_Heartbeat(), and Master_HeartbeatThread().
|
static |
Definition at line 75 of file sv_main.cpp.
|
static |
password for remote server commands
Definition at line 36 of file sv_main.cpp.
cvar_t* sv_dumpmapassembly |
Definition at line 47 of file sv_main.cpp.
Referenced by FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefTest::SetUpTestCase(), RandomMapAssemblyTest::SetUpTestCase(), and SV_BuildMapStrings().
|
static |
Definition at line 38 of file sv_main.cpp.
memPool_t* sv_genericPool |
Definition at line 55 of file sv_main.cpp.
Referenced by FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), GameTest::SetUpTestCase(), SV_InitGame(), and SV_MapcycleAdd().
|
static |
Definition at line 41 of file sv_main.cpp.
|
static |
Definition at line 37 of file sv_main.cpp.
cvar_t* sv_mapname |
Definition at line 53 of file sv_main.cpp.
Referenced by SV_Map().
Definition at line 46 of file sv_main.cpp.
Referenced by CL_InitLocal(), RandomMapAssemblyTest::SetUpTestCase(), GameTest::SetUpTestCase(), SP_worldspawn(), SV_InitGame(), SV_ParseAssembly(), and SV_SetMaster_f().
|
static |
Definition at line 40 of file sv_main.cpp.
|
static |
Definition at line 39 of file sv_main.cpp.
cvar_t* sv_public |
should heartbeats be sent
Definition at line 52 of file sv_main.cpp.
Referenced by FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefTest::SetUpTestCase(), and SV_InitGame().
|
static |
minimum seconds between connect messages
Definition at line 43 of file sv_main.cpp.
cvar_t* sv_rma |
Definition at line 49 of file sv_main.cpp.
Referenced by RandomMapAssemblyTest::SetUpTestCase(), SV_AddMapTiles(), and SV_DoMapAssemble().
cvar_t* sv_rmadisplaythemap |
display a character graphic of the tiles placed when RMA2 reaches a dead end.
Definition at line 50 of file sv_main.cpp.
Referenced by RandomMapAssemblyTest::SetUpTestCase(), SV_AddMapTiles(), and SV_AddMissingTiles_r().
cvar_t* sv_threads |
run the game lib threaded
Definition at line 48 of file sv_main.cpp.
Referenced by RandomMapAssemblyTest::SetUpTestCase(), SV_AddMapTiles(), SV_DoMapAssemble(), SV_InitGameProgs(), SV_ParallelSearch(), and TEST_F().
|
static |
Definition at line 44 of file sv_main.cpp.