- Fixed: Ambient sounds didn't pass their point of origin to S_StartSound.

SVN r1041 (trunk)
This commit is contained in:
Christoph Oelckers 2008-06-16 19:36:48 +00:00
parent de53c3cd4c
commit e3a6507381
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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)