mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-19 20:09:06 +03:00
fix some undefined/unspecified behaviours in multiplayer games( may help with #299 )
This commit is contained in:
@@ -1227,7 +1227,7 @@ void SV_DetermineMulticastRecipients( bool usepas, const Vector& origin, CBitVec
|
||||
serverGameClients->ClientEarPosition( pClient->edict, &vecEarPosition );
|
||||
|
||||
int iBitNumber = CM_LeafCluster( CM_PointLeafnum( vecEarPosition ) );
|
||||
if ( !(pMask[iBitNumber>>3] & (1<<(iBitNumber&7)) ) )
|
||||
if ( iBitNumber < 0 || !(pMask[iBitNumber>>3] & (1<<(iBitNumber&7)) ) )
|
||||
continue;
|
||||
|
||||
playerbits.Set( i );
|
||||
|
||||
Reference in New Issue
Block a user