Code:
void (entity e, float tm, float tf)
pqc_team_frags =
{
local float msg_type;
if (e == world)
msg_type = MSG_ALL;
else
{
msg_entity = e;
msg_type = MSG_ONE;
}
WriteByte (msg_type, SVC_STUFFTEXT);
WriteByte (msg_type, 1);
WriteByte (msg_type, PQC_TEAM_FRAGS);
WriteByte (msg_type, 15 + tm); //team
WriteShortPQ (msg_type, tf); //frags
WriteString (msg_type, string_null);
};
shouldnt this be
Code:
WriteByte (msg_type, 16 + tm); //team
16 not 15??
in the engine
Code:
case pqc_team_frags:
Sbar_Changed ();
team = MSG_ReadByte() - 16;
if (team < 0 || team > 13)
Host_Error ("CL_ParseProQuakeMessage: pqc_team_frags invalid team");
frags = MSG_ReadShortPQ();;
if (frags & 32768)
frags = frags - 65536;
cl.teamscores[team].frags = frags;
//Con_Printf("pqc_team_frags %d %d\n", team, frags);
break;
team = MSG_ReadByte() - 16;
same format as erase teams?