mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 16:51:08 +00:00
more cleanups
This commit is contained in:
parent
6637f3fba5
commit
9d59d953bd
14 changed files with 7 additions and 32 deletions
|
@ -43,8 +43,6 @@ static const char rcsid[] =
|
||||||
#include "QF/console.h"
|
#include "QF/console.h"
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
|
|
||||||
//FIXME eww
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Con_BasicCompleteCommandLine
|
Con_BasicCompleteCommandLine
|
||||||
|
|
|
@ -267,7 +267,6 @@ PF_cvar_set (progs_t *pr)
|
||||||
if (!var)
|
if (!var)
|
||||||
var = Cvar_FindAlias (var_name);
|
var = Cvar_FindAlias (var_name);
|
||||||
if (!var) {
|
if (!var) {
|
||||||
// FIXME: make Con_DPrint?
|
|
||||||
Sys_Printf ("PF_cvar_set: variable %s not found\n", var_name);
|
Sys_Printf ("PF_cvar_set: variable %s not found\n", var_name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,7 +334,6 @@ loop:
|
||||||
return -1; // didn't hit anything
|
return -1; // didn't hit anything
|
||||||
|
|
||||||
// calculate mid point
|
// calculate mid point
|
||||||
// FIXME: optimize for axial
|
|
||||||
plane = node->plane;
|
plane = node->plane;
|
||||||
front = DotProduct (start, plane->normal) - plane->dist;
|
front = DotProduct (start, plane->normal) - plane->dist;
|
||||||
back = DotProduct (end, plane->normal) - plane->dist;
|
back = DotProduct (end, plane->normal) - plane->dist;
|
||||||
|
|
|
@ -155,7 +155,6 @@ IE_CallHandler (ie_handler handler, ie_event_t *event, float value)
|
||||||
static int depth = 0;
|
static int depth = 0;
|
||||||
depth++;
|
depth++;
|
||||||
if (depth > IE_MAX_DEPTH)
|
if (depth > IE_MAX_DEPTH)
|
||||||
// FIXME: we may want to just issue a warning here
|
|
||||||
Sys_Error ("IE_CallHandler: max recursion depth hit");
|
Sys_Error ("IE_CallHandler: max recursion depth hit");
|
||||||
else
|
else
|
||||||
handler (event, value);
|
handler (event, value);
|
||||||
|
|
|
@ -196,7 +196,6 @@ VID_SetPalette (unsigned char *palette)
|
||||||
d_8to24table[255] = 0; // 255 is transparent
|
d_8to24table[255] = 0; // 255 is transparent
|
||||||
|
|
||||||
// JACK: 3D distance calcs - k is last closest, l is the distance.
|
// JACK: 3D distance calcs - k is last closest, l is the distance.
|
||||||
// FIXME: Precalculate this and cache to disk.
|
|
||||||
if (palflag)
|
if (palflag)
|
||||||
return;
|
return;
|
||||||
palflag = true;
|
palflag = true;
|
||||||
|
|
|
@ -657,7 +657,7 @@ VID_SetCaption (const char *text)
|
||||||
qboolean
|
qboolean
|
||||||
VID_SetGamma (double gamma)
|
VID_SetGamma (double gamma)
|
||||||
{
|
{
|
||||||
return false; //FIXME
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(i386) && defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2))
|
#if defined(i386) && defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2))
|
||||||
|
|
|
@ -187,7 +187,7 @@ CL_ClearState (void)
|
||||||
|
|
||||||
R_ClearEfrags ();
|
R_ClearEfrags ();
|
||||||
R_ClearDlights ();
|
R_ClearDlights ();
|
||||||
R_ClearParticles (); // FIXME: for R_ClearFires
|
R_ClearParticles ();
|
||||||
|
|
||||||
for (i = 0; i < MAX_EDICTS; i++) {
|
for (i = 0; i < MAX_EDICTS; i++) {
|
||||||
cl_baselines[i].ent = &cl_entities[i];
|
cl_baselines[i].ent = &cl_entities[i];
|
||||||
|
|
|
@ -685,7 +685,6 @@ V_CalcRefdef (void)
|
||||||
|
|
||||||
steptime = cl.time - cl.oldtime;
|
steptime = cl.time - cl.oldtime;
|
||||||
if (steptime < 0)
|
if (steptime < 0)
|
||||||
//FIXME I_Error ("steptime < 0");
|
|
||||||
steptime = 0;
|
steptime = 0;
|
||||||
|
|
||||||
oldz += steptime * 80;
|
oldz += steptime * 80;
|
||||||
|
|
|
@ -291,7 +291,6 @@ Host_WriteConfiguration (void)
|
||||||
SV_ClientPrintf
|
SV_ClientPrintf
|
||||||
|
|
||||||
Sends text across to be displayed
|
Sends text across to be displayed
|
||||||
FIXME: make this just a stuffed echo
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
SV_ClientPrintf (const char *fmt, ...)
|
SV_ClientPrintf (const char *fmt, ...)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
net_dgrm.c
|
net_dgrm.c
|
||||||
|
|
||||||
|
|
|
@ -156,10 +156,7 @@ SetMinMaxSize (progs_t *pr, edict_t *e, const vec3_t min, const vec3_t max,
|
||||||
if (min[i] > max[i])
|
if (min[i] > max[i])
|
||||||
PR_RunError (pr, "backwards mins/maxs");
|
PR_RunError (pr, "backwards mins/maxs");
|
||||||
|
|
||||||
rotate = false; // FIXME: implement rotation properly
|
rotate = false; // FIXME: implement rotation properly again
|
||||||
//
|
|
||||||
//
|
|
||||||
// again
|
|
||||||
|
|
||||||
if (!rotate) {
|
if (!rotate) {
|
||||||
VectorCopy (min, rmin);
|
VectorCopy (min, rmin);
|
||||||
|
|
|
@ -94,17 +94,11 @@ void Sbar_MiniDeathmatchOverlay (void);
|
||||||
void Sbar_DeathmatchOverlay (void);
|
void Sbar_DeathmatchOverlay (void);
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Sbar_ColorForMap
|
|
||||||
|
|
||||||
I'm not exactly sure why this exists, but I'm not going to change it yet.
|
|
||||||
*/
|
|
||||||
int
|
int
|
||||||
Sbar_ColorForMap (int m)
|
Sbar_ColorForMap (int m)
|
||||||
{
|
{
|
||||||
return m + 8; // FIXME: Might want this to be
|
return m + 8; // FIXME: Might want this to be
|
||||||
// return (bound (0, m, 13) * 16) +
|
// return (bound (0, m, 13) * 16) + 8;
|
||||||
// 8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -409,7 +409,7 @@ CL_ClearState (void)
|
||||||
|
|
||||||
R_ClearEfrags ();
|
R_ClearEfrags ();
|
||||||
R_ClearDlights ();
|
R_ClearDlights ();
|
||||||
R_ClearParticles (); // FIXME: for R_ClearFires in GL
|
R_ClearParticles ();
|
||||||
|
|
||||||
// wipe the entire cl structure
|
// wipe the entire cl structure
|
||||||
Info_Destroy (cl.serverinfo);
|
Info_Destroy (cl.serverinfo);
|
||||||
|
@ -1750,12 +1750,6 @@ Host_Init (void)
|
||||||
CL_UpdateScreen (realtime);
|
CL_UpdateScreen (realtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
Host_Shutdown
|
|
||||||
|
|
||||||
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
|
|
||||||
to run quit through here before the final handoff to the sys code.
|
|
||||||
*/
|
|
||||||
void
|
void
|
||||||
Host_Shutdown (void)
|
Host_Shutdown (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1110,9 +1110,8 @@ SV_InitOperatorCommands (void)
|
||||||
Cmd_AddCommand ("fraglogfile", SV_Fraglogfile_f, "Enables logging of kills "
|
Cmd_AddCommand ("fraglogfile", SV_Fraglogfile_f, "Enables logging of kills "
|
||||||
"to frag_##.log");
|
"to frag_##.log");
|
||||||
|
|
||||||
Cmd_AddCommand ("snap", SV_Snap_f, "FIXME: Take a screenshot of userid? No "
|
Cmd_AddCommand ("snap", SV_Snap_f, "Take a screenshot of userid");
|
||||||
"Description");
|
Cmd_AddCommand ("snapall", SV_SnapAll_f, "Take a screenshot of all users");
|
||||||
Cmd_AddCommand ("snapall", SV_SnapAll_f, "FIXME: No Description");
|
|
||||||
Cmd_AddCommand ("kick", SV_Kick_f, "Remove a user from the server (kick "
|
Cmd_AddCommand ("kick", SV_Kick_f, "Remove a user from the server (kick "
|
||||||
"userid)");
|
"userid)");
|
||||||
Cmd_AddCommand ("status", SV_Status_f, "Report information on the current "
|
Cmd_AddCommand ("status", SV_Status_f, "Report information on the current "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue