engine: server: fix svc_setpause usage in spawn command, fix minor protocol issue when spawnnig particle from pmove

This commit is contained in:
Alibek Omarov
2026-04-20 01:28:37 +05:00
parent a3dba64513
commit 306a5812a9
2 changed files with 2 additions and 2 deletions

View File

@@ -2167,7 +2167,7 @@ static qboolean SV_Spawn_f( sv_client_t *cl )
if( sv.paused )
{
MSG_BeginServerCmd( &sv.reliable_datagram, svc_setpause );
MSG_WriteByte( &sv.reliable_datagram, sv.paused );
MSG_WriteOneBit( &sv.reliable_datagram, sv.paused );
SV_ClientPrintf( cl, "Server is paused.\n" );
}
return true;

View File

@@ -331,7 +331,7 @@ static void GAME_EXPORT pfnParticle( const float *origin, int color, float life,
return;
}
MSG_WriteByte( &sv.reliable_datagram, svc_particle );
MSG_BeginServerCmd( &sv.reliable_datagram, svc_particle );
MSG_WriteVec3Coord( &sv.reliable_datagram, origin );
MSG_WriteChar( &sv.reliable_datagram, 0 ); // no x-vel
MSG_WriteChar( &sv.reliable_datagram, 0 ); // no y-vel