Overhaul to console structure, a bit

This commit is contained in:
iikorni
2026-08-30 00:50:23 -05:00
parent de75b014b3
commit 216dd1aecd
70 changed files with 2081 additions and 2260 deletions
+8 -8
View File
@@ -75,7 +75,7 @@ void SV_CheckAllEnts (void)
continue;
if (SV_TestEntityPosition (check))
Con_Printf ("entity in invalid position\n");
console::info ("entity in invalid position\n");
}
}
@@ -95,12 +95,12 @@ void SV_CheckVelocity (edict_t *ent)
{
if (IS_NAN(ent->v.velocity[i]))
{
Con_Printf ("Got a NaN velocity on %s\n", PR_GetString(ent->v.classname));
console::info ("Got a NaN velocity on %s\n", PR_GetString(ent->v.classname));
ent->v.velocity[i] = 0;
}
if (IS_NAN(ent->v.origin[i]))
{
Con_Printf ("Got a NaN origin on %s\n", PR_GetString(ent->v.classname));
console::info ("Got a NaN origin on %s\n", PR_GetString(ent->v.classname));
ent->v.origin[i] = 0;
}
if (ent->v.velocity[i] > sv_maxvelocity.value)
@@ -340,7 +340,7 @@ int SV_FlyMove (edict_t *ent, float time, trace_t *steptrace)
{ // go along the crease
if (numplanes != 2)
{
// Con_Printf ("clip velocity, numplanes == %i\n",numplanes);
// console::info ("clip velocity, numplanes == %i\n",numplanes);
VectorCopy (vec3_origin, ent->v.velocity);
return 7;
}
@@ -630,7 +630,7 @@ void SV_CheckStuck (edict_t *ent)
VectorCopy (ent->v.oldorigin, ent->v.origin);
if (!SV_TestEntityPosition(ent))
{
Con_DPrintf ("Unstuck.\n");
console::debug ("Unstuck.\n");
SV_LinkEdict (ent, true);
return;
}
@@ -644,14 +644,14 @@ void SV_CheckStuck (edict_t *ent)
ent->v.origin[2] = org[2] + z;
if (!SV_TestEntityPosition(ent))
{
Con_DPrintf ("Unstuck.\n");
console::debug ("Unstuck.\n");
SV_LinkEdict (ent, true);
return;
}
}
VectorCopy (org, ent->v.origin);
Con_DPrintf ("player is stuck.\n");
console::debug ("player is stuck.\n");
}
@@ -768,7 +768,7 @@ int SV_TryUnstick (edict_t *ent, vec3_t oldvel)
if ( fabs(oldorg[1] - ent->v.origin[1]) > 4
|| fabs(oldorg[0] - ent->v.origin[0]) > 4 )
{
// Con_DPrintf ("unstuck!\n");
// console::debug ("unstuck!\n");
return clip;
}