Change nicefade to bool instead of int

If it's treated like a bool, why shouldn't it be one?
This commit is contained in:
Misa
2020-11-06 00:20:58 -08:00
committed by Ethan Lee
parent f0b9bdc007
commit c1ca57e096
3 changed files with 8 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ void musicclass::init()
currentsong = 0;
nicechange = 0;
nicefade = 0;
nicefade = false;
resumesong = 0;
fadeoutqueuesong = -1;
dontquickfade = false;
@@ -282,10 +282,11 @@ void musicclass::processmusic()
fadeoutqueuesong = -1;
}
if (nicefade == 1 && Mix_PlayingMusic() == 0)
if (nicefade && Mix_PlayingMusic() == 0)
{
play(nicechange);
nicechange = -1; nicefade = 0;
nicechange = -1;
nicefade = false;
}
if(m_doFadeInVol)
@@ -305,7 +306,7 @@ void musicclass::niceplay(int t)
dontquickfade = true;
fadeout();
}
nicefade = 1;
nicefade = true;
nicechange = t;
}
}