From e3a650738173398ae9ab913aefb31a4a63a79109 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 16 Jun 2008 19:36:48 +0000 Subject: [PATCH] - Fixed: Ambient sounds didn't pass their point of origin to S_StartSound. SVN r1041 (trunk) --- docs/rh-log.txt | 1 + src/s_advsound.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 9d943f8b0e..b9e4d68b84 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 3106205441..abe0bf3ca1 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)