From c4797f95fed2db6358c71b72e0ac1ddaa90494d9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 10 Feb 2000 11:19:51 +0000 Subject: [PATCH] added some more missing cvars --- common/host.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/common/host.c b/common/host.c index 0c99df2..e4669bf 100644 --- a/common/host.c +++ b/common/host.c @@ -64,6 +64,7 @@ int fps_count; int vcrFile = -1; double host_time; +cvar_t sys_ticrate = {"sys_ticrate","0.05"}; cvar_t serverprofile = {"serverprofile", "0"}; cvar_t host_framerate = {"host_framerate", "0"}; // set for slow motion cvar_t samelevel = {"samelevel", "0"}; @@ -762,4 +763,24 @@ void Host_FindMaxClients (void) else Cvar_SetValue ("deathmatch", 0.0); } + +/* +================= +Host_ClientCommands + +Send text over to the client to be executed +================= +*/ +void Host_ClientCommands (char *fmt, ...) +{ + va_list argptr; + char string[1024]; + + va_start (argptr, fmt); + vsnprintf (string, sizeof(string), fmt, argptr); + va_end (argptr); + + MSG_WriteByte (&host_client->message, svc_stufftext); + MSG_WriteString (&host_client->message, string); +} #endif