mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r4595) - Fix (FS#63) Music volume is now restored to the value saved in openttd.cfg
This commit is contained in:
parent
2f3401b487
commit
02d07a056f
|
@ -442,6 +442,9 @@ int ttd_main(int argc, char* argv[])
|
||||||
LoadDriver(VIDEO_DRIVER, _ini_videodriver); // load video last, to prevent an empty window while sound and music loads
|
LoadDriver(VIDEO_DRIVER, _ini_videodriver); // load video last, to prevent an empty window while sound and music loads
|
||||||
_savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING;
|
_savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING;
|
||||||
|
|
||||||
|
// restore saved music volume
|
||||||
|
_music_driver->set_volume(msf.music_vol);
|
||||||
|
|
||||||
#ifdef ENABLE_NETWORK
|
#ifdef ENABLE_NETWORK
|
||||||
// initialize network-core
|
// initialize network-core
|
||||||
NetworkStartUp();
|
NetworkStartUp();
|
||||||
|
|
Loading…
Reference in New Issue