mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Block playing by yourself in TESTERS build with le funni message
SV_SpawnServer is called in instances other than joining a server or watching a replay. How convenient, huh?
This commit is contained in:
parent
dca76c3f08
commit
8cbdc999f4
1 changed files with 6 additions and 0 deletions
|
|
@ -3623,6 +3623,11 @@ boolean Playing(void)
|
|||
|
||||
boolean SV_SpawnServer(void)
|
||||
{
|
||||
#ifdef TESTERS
|
||||
/* Just don't let the testers play. Easy. */
|
||||
I_Error("What do you think you're doing?");
|
||||
return 0;
|
||||
#else
|
||||
if (demo.playback)
|
||||
G_StopDemo(); // reset engine parameter
|
||||
if (metalplayback)
|
||||
|
|
@ -3649,6 +3654,7 @@ boolean SV_SpawnServer(void)
|
|||
}
|
||||
|
||||
return SV_AddWaitingPlayers();
|
||||
#endif
|
||||
}
|
||||
|
||||
void SV_StopServer(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue