dpvsnprintf (hosterrorstring1,sizeof(hosterrorstring1),error,argptr);
va_end (argptr);
- Con_Printf("Host_Error: %s\n", hosterrorstring1);
+ Con_Errorf("Host_Error: %s\n", hosterrorstring1);
// LadyHavoc: if crashing very early, or currently shutting down, do
// Sys_Error instead
f = FS_OpenRealFile(file, "wb", false);
if (!f)
{
- Con_Printf("Couldn't write %s.\n", file);
+ Con_Errorf("Couldn't write %s.\n", file);
return;
}
host_client->clientconnectcalled = false;
PRVM_serverglobalfloat(time) = sv.time;
PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(host_client->edict);
+ // optional entity parameter for self (EXT_ENTITYPARAM)
+ PRVM_G_INT(OFS_PARM0) = PRVM_EDICT_TO_PROG(host_client->edict);
prog->ExecuteProgram(prog, PRVM_serverfunction(ClientDisconnect), "QC function ClientDisconnect is missing");
PRVM_serverglobaledict(self) = saveSelf;
}
{
// warn if it's significant
if (deltacleantime < -0.01)
- Con_Printf("Host_Mingled: time stepped backwards (went from %f to %f, difference %f)\n", olddirtytime, dirtytime, deltacleantime);
+ Con_Warnf("Host_Mingled: time stepped backwards (went from %f to %f, difference %f)\n", olddirtytime, dirtytime, deltacleantime);
deltacleantime = 0;
}
else if (deltacleantime >= 1800)
{
- Con_Printf("Host_Mingled: time stepped forward (went from %f to %f, difference %f)\n", olddirtytime, dirtytime, deltacleantime);
+ Con_Warnf("Host_Mingled: time stepped forward (went from %f to %f, difference %f)\n", olddirtytime, dirtytime, deltacleantime);
deltacleantime = 0;
}
realtime += deltacleantime;
// process console commands
// R_TimeReport("preconsole");
CL_VM_PreventInformationLeaks();
+ Cbuf_Frame(&cmd_clientfromserver);
Cbuf_Frame(&cmd_client);
Cbuf_Frame(&cmd_server);
Cbuf_Frame(&cmd_serverfromclient);
}
- if(cls.netcon)
- {
- Cbuf_Frame(&cmd_clientfromserver);
- }
-
// R_TimeReport("console");
}
R_TimeReport("client");
CL_UpdateScreen();
- CL_MeshEntities_Reset();
R_TimeReport("render");
if (host_speeds.integer)
{
if(locksession.integer == 2)
{
- Con_Printf("WARNING: session lock %s could not be acquired. Please run with -sessionid and an unique session name. Continuing anyway.\n", p);
+ Con_Warnf("WARNING: session lock %s could not be acquired. Please run with -sessionid and an unique session name. Continuing anyway.\n", p);
}
else
{
}
}
+extern hook_t *csqc_concmd;
+
/*
====================
Host_Init
// initialize memory subsystem cvars/commands
Memory_Init_Commands();
+ Hook_Init();
+ csqc_concmd = Hook_Register(csqc_concmd,CL_VM_ConsoleCommand,1);
// initialize console and logging and its cvars/commands
Con_Init();
Cbuf_Execute(cmd);
}
+ Log_Start();
+
// put up the loading image so the user doesn't stare at a black screen...
SCR_BeginLoadingPlaque(true);