Nuke a FIXME.

That was a rather evil hack, but what's worse is when I finally fixed the
problem, I didn't fix the fixme :P
This commit is contained in:
Bill Currie 2012-06-24 21:13:51 +09:00
parent bcc1de3b84
commit f128aca207
4 changed files with 2 additions and 9 deletions

View File

@ -537,7 +537,7 @@ CL_Init (cbuf_t *cbuf)
R_Init ();
r_data->lightstyle = cl.lightstyle;
S_Init (&viewentity, &host_frametime);
S_Init (&cl.viewentity, &host_frametime);
PI_RegisterPlugins (client_plugin_list);
Con_Init ("client");

View File

@ -866,8 +866,6 @@ CL_SetStat (int stat, int value)
if (cl_shownet->int_val == 2) \
Sys_Printf ("%3i:%s\n", net_message->readcount - 1, x);
int viewentity;
void
CL_ParseServerMessage (void)
{
@ -943,7 +941,6 @@ CL_ParseServerMessage (void)
case svc_setview:
cl.viewentity = MSG_ReadShort (net_message);
viewentity = cl.viewentity; // FIXME: evil hack
break;
case svc_sound:

View File

@ -1193,7 +1193,7 @@ CL_Init (void)
con_module->data->console->cbuf = cl_cbuf;
}
S_Init (&viewentity, &host_frametime);
S_Init (&cl.viewentity, &host_frametime);
CDAudio_Init ();
Sbar_Init ();

View File

@ -159,8 +159,6 @@ int oldparsecountmod;
int parsecountmod;
double parsecounttime;
int viewentity;
int cl_spikeindex, cl_playerindex, cl_flagindex;
int cl_h_playerindex, cl_gib1index, cl_gib2index, cl_gib3index;
@ -810,9 +808,7 @@ CL_ParseServerData (void)
}
}
// FIXME: evil hack so NQ and QW can share sound code
cl.viewentity = cl.playernum + 1;
viewentity = cl.playernum + 1;
// get the full level name
str = MSG_ReadString (net_message);