mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 12:25:00 +08:00
engine: client: sound: fix inverted check for inaudible channel auto free
This commit is contained in:
@@ -364,7 +364,7 @@ static int S_MixNormalChannelsToRoombuffer( portable_samplepair_t *dst, int end
|
||||
{
|
||||
if( ch->inauduble_free_time == 0.0f )
|
||||
ch->inauduble_free_time = host.realtime + MAX_CHANNEL_INAUDIBLE_TIME;
|
||||
else if( ch->inauduble_free_time > host.realtime )
|
||||
else if( host.realtime > ch->inauduble_free_time )
|
||||
S_FreeChannel( ch );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user