mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- Fixed: Calling S_ChangeMusic() with the same song but a different looping
flag now restarts the song so that the new looping setting can be applied. (This was easier than modifying every music handler to support modifying loop changes on the fly, which seems like overkill.) SVN r2041 (trunk)
This commit is contained in:
parent
735294884e
commit
6beaf818e3
2 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
December 24, 2009
|
December 24, 2009
|
||||||
|
- Fixed: Calling S_ChangeMusic() with the same song but a different looping
|
||||||
|
flag now restarts the song so that the new looping setting can be applied.
|
||||||
|
(This was easier than modifying every music handler to support modifying
|
||||||
|
loop changes on the fly, which seems like overkill.)
|
||||||
- Fixed: savepatchsize was declared incorrectly in d_dehacked.cpp:DoInclude().
|
- Fixed: savepatchsize was declared incorrectly in d_dehacked.cpp:DoInclude().
|
||||||
- Changed AFastProjectile::Effect() so that it sets the spawned trail to face
|
- Changed AFastProjectile::Effect() so that it sets the spawned trail to face
|
||||||
same direction as the projectile.
|
same direction as the projectile.
|
||||||
|
|
|
@ -2306,7 +2306,9 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mus_playing.name.IsEmpty() && stricmp (mus_playing.name, musicname) == 0)
|
if (!mus_playing.name.IsEmpty() &&
|
||||||
|
stricmp (mus_playing.name, musicname) == 0 &&
|
||||||
|
mus_playing.handle->m_Looping == looping)
|
||||||
{
|
{
|
||||||
if (order != mus_playing.baseorder)
|
if (order != mus_playing.baseorder)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue