mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Force the soundtrack to be sent again
This commit is contained in:
parent
ac22b1cfbf
commit
07f13d1ae9
1 changed files with 5 additions and 0 deletions
|
@ -1528,7 +1528,12 @@ void ChangeSoundtrack(const char *soundtrack)
|
|||
level.saved_soundtrack = level.current_soundtrack;
|
||||
level.current_soundtrack = soundtrack;
|
||||
|
||||
// Force the soundtrack to be sent again by setting it to empty first
|
||||
// so it gets sent to clients again especially when loading
|
||||
// from a saved game
|
||||
gi.setConfigstring(CS_MUSIC, "");
|
||||
gi.setConfigstring(CS_MUSIC, soundtrack);
|
||||
|
||||
gi.DPrintf("soundtrack switched to %s.\n", soundtrack);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue