Skip to content

Commit

Permalink
Merge branch 'FNF-CNE-Devs:main' into cne-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Oct 26, 2024
2 parents 583022c + 08179b1 commit cb90994
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 4 additions & 5 deletions source/funkin/game/HealthIcon.hx
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ class HealthIcon extends FlxSprite
if (animation.curAnim != null) {
var i:Int = -1;
var oldKey:Int = -1;
for(k=>icon in healthSteps) {
if (k > oldKey && k < health * 100) {
oldKey = k;
i = icon;
}
for (k=>icon in healthSteps) if (k > oldKey && k <= health * 100) {
oldKey = k;
i = icon;
}

if (i >= 0) animation.curAnim.curFrame = i;
}
}
Expand Down
4 changes: 3 additions & 1 deletion source/funkin/menus/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import funkin.options.keybinds.KeybindsOptions;
import funkin.menus.StoryMenuState;
import funkin.backend.system.Conductor;
import funkin.backend.utils.FunkinParentDisabler;
import funkin.options.TreeMenu;

class PauseSubState extends MusicBeatSubstate
{
Expand Down Expand Up @@ -160,6 +161,7 @@ class PauseSubState extends MusicBeatSubstate
removeVirtualPad();
openSubState(new KeybindsOptions());
case "Change Options":
TreeMenu.lastState = PlayState;
FlxG.switchState(new OptionsMenu());
case "Exit to charter":
FlxG.switchState(new funkin.editors.charter.Charter(PlayState.SONG.meta.name, PlayState.difficulty, false));
Expand Down Expand Up @@ -220,4 +222,4 @@ class PauseSubState extends MusicBeatSubstate
item.alpha = 0.6;
}
}
}
}

0 comments on commit cb90994

Please sign in to comment.