Fixed custom beams

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@854 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-28 19:26:24 +00:00
parent 5136f7bcbc
commit fa82bc9c8c

View file

@ -6946,15 +6946,25 @@ void PF_CustomTEnt(progfuncs_t *prinst, struct globalvars_s *pr_globals)
type = sv.customtents[type].netstyle; type = sv.customtents[type].netstyle;
arg = 2; arg = 2;
if (type & CTE_CUSTOMCOUNT) if (type & CTE_ISBEAM)
{ {
MSG_WriteByte(&sv.multicast, G_FLOAT(OFS_PARM0+arg*3)); MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[0]);
MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[1]);
MSG_WriteCoord(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)[2]);
arg++; arg++;
} }
if (type & CTE_CUSTOMDIRECTION) else
{ {
MSG_WriteDir(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3)); if (type & CTE_CUSTOMCOUNT)
arg++; {
MSG_WriteByte(&sv.multicast, G_FLOAT(OFS_PARM0+arg*3));
arg++;
}
if (type & CTE_CUSTOMDIRECTION)
{
MSG_WriteDir(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3));
arg++;
}
} }
if (arg != *prinst->callargc) if (arg != *prinst->callargc)
Con_Printf("PF_CusromTEnt: bad number of arguments for particle type\n"); Con_Printf("PF_CusromTEnt: bad number of arguments for particle type\n");