summaryrefslogtreecommitdiff
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
commite92ec641fa41ce515b2dbcaa25574f9422f83773 (patch)
treebd7ab82769c5e3273a9d8b8c75a3f8da3a0d8890
parent7aaedf038522579b2210d91234beb0e3cb919960 (diff)
downloadopenttd-e92ec641fa41ce515b2dbcaa25574f9422f83773.tar.xz
(svn r4595) - Fix (FS#63) Music volume is now restored to the value saved in openttd.cfg
-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();