Synchronize the entity time with the channel time when loading

This prevents the channel from stopping immediately during respatialization, the entity time may be updated quite some time after loading
This commit is contained in:
smallmodel 2024-11-17 18:46:21 +01:00
parent 154464cda1
commit 5819145af8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2659,6 +2659,10 @@ S_StartSoundFromBase(channelbasesavegame_t *pBase, openal_channel *pChannel, sfx
} else {
pChannel->iFlags |= CHANNEL_FLAG_PLAY_DEFERRED;
}
if (pChannel->iEntNum != ENTITYNUM_NONE) {
s_entity[pChannel->iEntNum].time = pChannel->iTime;
}
}
/*