summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-04-27 21:05:32 +0000
committerglx <glx@openttd.org>2006-04-27 21:05:32 +0000
commit02d07a056f5fbef6882d99c4ac0b2c614875bd2e (patch)
treebd7ab82769c5e3273a9d8b8c75a3f8da3a0d8890 /openttd.c
parent2f3401b4877921a6cac394eb37ae4f8603becc34 (diff)
downloadopenttd-02d07a056f5fbef6882d99c4ac0b2c614875bd2e.tar.xz
(svn r4595) - Fix (FS#63) Music volume is now restored to the value saved in openttd.cfg
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index b7ef3a635..8d8fed663 100644
--- a/openttd.c
+++ b/openttd.c
@@ -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
_savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING;
+ // restore saved music volume
+ _music_driver->set_volume(msf.music_vol);
+
#ifdef ENABLE_NETWORK
// initialize network-core
NetworkStartUp();