mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: fix svc_setpause usage in spawn command, fix minor protocol issue when spawnnig particle from pmove
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user