mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
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:
parent
4d4b9288c6
commit
be34870a18
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue