mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: use Host_IsLocalClient where it should be, as it checks for local games, not specifically singleplayer games
This commit is contained in:
@@ -2854,7 +2854,7 @@ static void CL_ReadPackets( void )
|
||||
// hot precache and downloading resources
|
||||
if( cls.signon == SIGNONS && cl.lastresourcecheck < host.realtime )
|
||||
{
|
||||
double checktime = Host_IsLocalGame() ? 0.1 : 1.0;
|
||||
double checktime = Host_IsLocalClient() ? 0.1 : 1.0;
|
||||
|
||||
if( !cls.dl.custom && cl.resourcesneeded.pNext != &cl.resourcesneeded )
|
||||
{
|
||||
|
||||
@@ -188,7 +188,7 @@ void UI_ShowConnectionWarning( void )
|
||||
if( cls.state != ca_connected )
|
||||
return;
|
||||
|
||||
if( Host_IsLocalClient() )
|
||||
if( Host_IsLocalClient( ))
|
||||
return;
|
||||
|
||||
if( ++cl.lostpackets == 8 )
|
||||
|
||||
@@ -233,7 +233,7 @@ static int VOX_MixChannelToBuffer( portable_samplepair_t *pbuf, channel_t *chan,
|
||||
|
||||
static int S_MixNormalChannels( portable_samplepair_t *dst, int end, int rate )
|
||||
{
|
||||
const qboolean local = Host_IsLocalGame();
|
||||
const qboolean local = Host_IsLocalClient();
|
||||
const qboolean ingame = CL_IsInGame();
|
||||
const int num_samples = ( end - snd.paintedtime ) / ( SOUND_DMA_SPEED / rate );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user