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:
parent
5136f7bcbc
commit
fa82bc9c8c
1 changed files with 15 additions and 5 deletions
|
@ -6946,6 +6946,15 @@ void PF_CustomTEnt(progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
|||
|
||||
type = sv.customtents[type].netstyle;
|
||||
arg = 2;
|
||||
if (type & CTE_ISBEAM)
|
||||
{
|
||||
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++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (type & CTE_CUSTOMCOUNT)
|
||||
{
|
||||
MSG_WriteByte(&sv.multicast, G_FLOAT(OFS_PARM0+arg*3));
|
||||
|
@ -6956,6 +6965,7 @@ void PF_CustomTEnt(progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
|||
MSG_WriteDir(&sv.multicast, G_VECTOR(OFS_PARM0+arg*3));
|
||||
arg++;
|
||||
}
|
||||
}
|
||||
if (arg != *prinst->callargc)
|
||||
Con_Printf("PF_CusromTEnt: bad number of arguments for particle type\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue