summaryrefslogtreecommitdiff
path: root/music_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-02-20 23:40:53 +0000
committerDarkvater <Darkvater@openttd.org>2006-02-20 23:40:53 +0000
commit83957ac5ad135b1dc8c8c404046f96e888b444df (patch)
tree7df7de39c7fc63514cc6886a52e30f34423a0e8c /music_gui.c
parenta2c9df81b9459cb021d28c6913c2ff59d3efa312 (diff)
downloadopenttd-83957ac5ad135b1dc8c8c404046f96e888b444df.tar.xz
(svn r3641) - Rename MusicFilesettings 'btn_down' to more sensible 'playing'
Diffstat (limited to 'music_gui.c')
-rw-r--r--music_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/music_gui.c b/music_gui.c
index bdd1c550c..3a9eb2e69 100644
--- a/music_gui.c
+++ b/music_gui.c
@@ -182,9 +182,9 @@ void ResetMusic(void)
void MusicLoop(void)
{
- if (!msf.btn_down && _song_is_active) {
+ if (!msf.playing && _song_is_active) {
StopMusic();
- } else if (msf.btn_down && !_song_is_active) {
+ } else if (msf.playing && !_song_is_active) {
PlayPlaylistSong();
}
@@ -405,10 +405,10 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
SkipToNextSong();
break;
case 4: // stop playing
- msf.btn_down = false;
+ msf.playing = false;
break;
case 5: // start playing
- msf.btn_down = true;
+ msf.playing = true;
break;
case 6:{ // volume sliders
byte *vol,new_vol;