From 30b97753cca484a5e177e54ee59dc181a1d22ce5 Mon Sep 17 00:00:00 2001 From: zico Date: Thu, 27 Jun 2013 12:55:19 +0200 Subject: [PATCH] Made credits music fade respect previous music volume --- main/credits.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/credits.c b/main/credits.c index 4f24eefee..7a3e765b7 100644 --- a/main/credits.c +++ b/main/credits.c @@ -114,8 +114,10 @@ int credits_handler(window *wind, d_event *event, credits *cr) // cheap but effective: towards end of credits sequence, fade out the music volume if (cr->done >= NUM_LINES-16) { - static int curvol = 8; - if (curvol != (NUM_LINES-cr->done)/2) + static int curvol = -10; + if (curvol == -10) + curvol = GameCfg.MusicVolume; + if (curvol > (NUM_LINES-cr->done)/2) { curvol = (NUM_LINES-cr->done)/2; songs_set_volume(curvol);