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:
James R 2019-09-27 19:19:04 -07:00
parent dca76c3f08
commit 8cbdc999f4

View file

@ -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)