summaryrefslogtreecommitdiff
path: root/src/music_gui.cpp
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-06-06 20:58:06 +0200
committerMichael Lutz <michi@icosahedron.de>2018-06-15 23:09:17 +0200
commita1b7812c7e5e7a25a9eb51fd397b19606451f8e6 (patch)
tree5c226ff9e73dc4c0cd9ddc2ea4989f84960f0d97 /src/music_gui.cpp
parent11a846e3d517c367112287f797065341e5e5c158 (diff)
downloadopenttd-a1b7812c7e5e7a25a9eb51fd397b19606451f8e6.tar.xz
Change: Improved looping of title song
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r--src/music_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 4333e889c..c5cfb3bae 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -191,6 +191,7 @@ static void DoPlaySong()
FioFindFullPath(filename, lastof(filename), OLD_GM_DIR, songinfo.filename);
}
songinfo.filename = filename; // non-owned pointer
+ songinfo.loop = (_game_mode == GM_MENU) && (_music_wnd_cursong == 1);
MusicDriver::GetInstance()->PlaySong(songinfo);
SetWindowDirty(WC_MUSIC_WINDOW, 0);
}