engine: client: sound: fix inverted check for inaudible channel auto free

This commit is contained in:
Alibek Omarov
2026-08-06 03:55:51 +05:00
parent 4f554e7b8b
commit 15276ef92a

View File

@@ -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 );
}