mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-16 11:53:45 +00:00
Fixed song starting early when paused during countdown
also tweaked something in main menu
This commit is contained in:
parent
5175f48eba
commit
03b8daea35
|
@ -95,7 +95,7 @@ class MainMenuState extends MusicBeatState
|
||||||
|
|
||||||
override function update(elapsed:Float)
|
override function update(elapsed:Float)
|
||||||
{
|
{
|
||||||
if (FlxG.sound.music.volume < 1)
|
if (FlxG.sound.music.volume < 0.8)
|
||||||
{
|
{
|
||||||
FlxG.sound.music.volume += 0.5 * FlxG.elapsed;
|
FlxG.sound.music.volume += 0.5 * FlxG.elapsed;
|
||||||
}
|
}
|
||||||
|
|
|
@ -576,7 +576,7 @@ class PlayState extends MusicBeatState
|
||||||
{
|
{
|
||||||
if (paused)
|
if (paused)
|
||||||
{
|
{
|
||||||
if (FlxG.sound.music != null)
|
if (FlxG.sound.music != null && !startingSong)
|
||||||
{
|
{
|
||||||
FlxG.sound.music.play();
|
FlxG.sound.music.play();
|
||||||
Conductor.songPosition = FlxG.sound.music.time;
|
Conductor.songPosition = FlxG.sound.music.time;
|
||||||
|
|
Loading…
Reference in a new issue