mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 08:31:14 +00:00
Include #ifdef to make it easier to create a stand-alone binary.
This commit is contained in:
parent
ca5fabe8c6
commit
b3822d03e2
10 changed files with 84 additions and 20 deletions
|
@ -397,6 +397,9 @@ static void SV_Kick_f( void ) {
|
|||
cl->lastPacketTime = svs.time; // in case there is a funny zombie
|
||||
}
|
||||
|
||||
#ifndef STANDALONE
|
||||
// these functions require the auth server which of course is not available anymore for stand-alone games.
|
||||
|
||||
/*
|
||||
==================
|
||||
SV_Ban_f
|
||||
|
@ -506,6 +509,7 @@ static void SV_BanNum_f( void ) {
|
|||
Com_Printf("%s was banned from coming back\n", cl->name);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
==================
|
||||
|
@ -735,8 +739,10 @@ void SV_AddOperatorCommands( void ) {
|
|||
|
||||
Cmd_AddCommand ("heartbeat", SV_Heartbeat_f);
|
||||
Cmd_AddCommand ("kick", SV_Kick_f);
|
||||
#ifndef STANDALONE
|
||||
Cmd_AddCommand ("banUser", SV_Ban_f);
|
||||
Cmd_AddCommand ("banClient", SV_BanNum_f);
|
||||
#endif
|
||||
Cmd_AddCommand ("clientkick", SV_KickNum_f);
|
||||
Cmd_AddCommand ("status", SV_Status_f);
|
||||
Cmd_AddCommand ("serverinfo", SV_Serverinfo_f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue