git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7988
d7cf8633-e32d-0410-b094-
e92efae38249
Cvar_RegisterVariable(&sv_adminnick);
}
+void Host_NoOperation_f(void)
+{
+}
void Host_ClientCommands(const char *fmt, ...) DP_FUNC_PRINTF(1);
void Host_ShutdownServer(void);
void Host_Reconnect_f(void);
+void Host_NoOperation_f(void);
void Host_AbortCurrentFrame(void);
// COMMANDLINEOPTION: Sound: -nosound disables sound (including CD audio)
if (COM_CheckParm("-nosound"))
+ {
+ // dummy out Play and Play2 because mods stuffcmd that
+ Cmd_AddCommand("play", Host_NoOperation_f, "does nothing because -nosound was specified");
+ Cmd_AddCommand("play2", Host_NoOperation_f, "does nothing because -nosound was specified");
return;
+ }
snd_mempool = Mem_AllocPool("sound", 0, NULL);