mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- Fixed: Ambient sounds didn't pass their point of origin to S_StartSound.
SVN r1041 (trunk)
This commit is contained in:
parent
de53c3cd4c
commit
e3a6507381
2 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
June 16, 2008 (Changes by Graf Zahl)
|
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: UseType was not properly set for textures defined in TEXTURES.
|
||||||
- Fixed: You couldn't set an offset for sprites 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
|
- Added read barriers to all actor pointers within player_t except for
|
||||||
|
|
|
@ -1864,6 +1864,7 @@ void AAmbientSound::Serialize (FArchive &arc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AAmbientSound::Tick ()
|
void AAmbientSound::Tick ()
|
||||||
{
|
{
|
||||||
Super::Tick ();
|
Super::Tick ();
|
||||||
|
@ -1880,7 +1881,7 @@ void AAmbientSound::Tick ()
|
||||||
|
|
||||||
if (ambient->sound[0])
|
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);
|
ambient->volume, ambient->attenuation);
|
||||||
SetTicker (ambient);
|
SetTicker (ambient);
|
||||||
}
|
}
|
||||||
|
@ -1904,6 +1905,7 @@ void AAmbientSound::Tick ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AAmbientSound::SetTicker (struct AmbientSound *ambient)
|
void AAmbientSound::SetTicker (struct AmbientSound *ambient)
|
||||||
{
|
{
|
||||||
if ((ambient->type & CONTINUOUS) == CONTINUOUS)
|
if ((ambient->type & CONTINUOUS) == CONTINUOUS)
|
||||||
|
|
Loading…
Reference in a new issue