diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 9d943f8b0..b9e4d68b8 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ June 16, 2008 (Changes by Graf Zahl) +- Fixed: Ambient sounds didn't pass their point of origin to S_StartSound. - Fixed: UseType was not properly set for textures defined in TEXTURES. - Fixed: You couldn't set an offset for sprites defined in TEXTURES. - Added read barriers to all actor pointers within player_t except for diff --git a/src/s_advsound.cpp b/src/s_advsound.cpp index 310620544..abe0bf3ca 100644 --- a/src/s_advsound.cpp +++ b/src/s_advsound.cpp @@ -1864,6 +1864,7 @@ void AAmbientSound::Serialize (FArchive &arc) } } + void AAmbientSound::Tick () { Super::Tick (); @@ -1880,7 +1881,7 @@ void AAmbientSound::Tick () if (ambient->sound[0]) { - S_StartSound (NULL, this, NULL, CHAN_BODY|CHAN_LOOP, ambient->sound, + S_StartSound (&this->x, this, NULL, CHAN_BODY|CHAN_LOOP, ambient->sound, ambient->volume, ambient->attenuation); SetTicker (ambient); } @@ -1904,6 +1905,7 @@ void AAmbientSound::Tick () } } + void AAmbientSound::SetTicker (struct AmbientSound *ambient) { if ((ambient->type & CONTINUOUS) == CONTINUOUS)