This seems more correct...

This commit is contained in:
Shpoike 2023-03-15 18:02:59 +00:00
parent 6f61af8ee9
commit 84035c8ae2

View file

@ -7408,8 +7408,8 @@ void QCBUILTIN PF_patch_create(pubprogfuncs_t *prinst, struct globalvars_s *pr_g
{ {
MSG_WriteByte(&sv.multicast, svcfte_brushedit); MSG_WriteByte(&sv.multicast, svcfte_brushedit);
MSG_WriteShort(&sv.multicast, modelindex); MSG_WriteShort(&sv.multicast, modelindex);
MSG_WriteByte(&sv.multicast, hmcmd_brush_insert); MSG_WriteByte(&sv.multicast, hmcmd_patch_insert);
Brush_Serialise(&sv.multicast, nb); Patch_Serialise(&sv.multicast, nb);
SV_MulticastProtExt(vec3_origin, MULTICAST_ALL_R, ~0, 0, 0); SV_MulticastProtExt(vec3_origin, MULTICAST_ALL_R, ~0, 0, 0);
return; return;
} }
@ -7419,8 +7419,8 @@ void QCBUILTIN PF_patch_create(pubprogfuncs_t *prinst, struct globalvars_s *pr_g
{ {
MSG_WriteByte(&cls.netchan.message, clcfte_brushedit); MSG_WriteByte(&cls.netchan.message, clcfte_brushedit);
MSG_WriteShort(&cls.netchan.message, modelindex); MSG_WriteShort(&cls.netchan.message, modelindex);
MSG_WriteByte(&cls.netchan.message, hmcmd_brush_insert); MSG_WriteByte(&cls.netchan.message, hmcmd_patch_insert);
Brush_Serialise(&cls.netchan.message, nb); Patch_Serialise(&cls.netchan.message, nb);
return; return;
} }
#endif #endif