Copy the channel origin to the sound entity origin when loading

If the channel had a valid entity at the time of saving, make sure to restore the origin
This commit is contained in:
smallmodel 2024-11-23 21:12:58 +01:00
parent 4d4b9288c6
commit be34870a18
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2662,6 +2662,7 @@ S_StartSoundFromBase(channelbasesavegame_t *pBase, openal_channel *pChannel, sfx
if (pChannel->iEntNum != ENTITYNUM_NONE) {
s_entity[pChannel->iEntNum].time = pChannel->iTime;
VectorCopy(pChannel->vOrigin, s_entity[pChannel->iEntNum].position);
}
}