(svn r4595) - Fix (FS#63) Music volume is now restored to the value saved in openttd.cfg
authorglx
Thu, 27 Apr 2006 21:05:32 +0000
changeset 3678 696a32fc8a5d
parent 3677 526d6243241a
child 3679 252b4ab2aad4
(svn r4595) - Fix (FS#63) Music volume is now restored to the value saved in openttd.cfg
openttd.c
--- a/openttd.c	Thu Apr 27 19:53:58 2006 +0000
+++ b/openttd.c	Thu Apr 27 21:05:32 2006 +0000
@@ -442,6 +442,9 @@
 	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();