Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
fixed icons crash????????
Browse files Browse the repository at this point in the history
  • Loading branch information
notweuz committed Jul 13, 2022
1 parent 31169aa commit 02504bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/HealthIcon.hx
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ class HealthIcon extends FlxSprite

loadGraphic(file); //Load stupidly first for getting the file size
var width2 = width;
if (width/3 == 150) {
loadGraphic(file, true, Math.floor(width / 3), Math.floor(150)); //Then load it fr // winning icons go br
if (width == 450) {
loadGraphic(file, true, Math.floor(width / 3), Math.floor(height)); //Then load it fr // winning icons go br
iconOffsets[0] = (width - 150) / 3;
iconOffsets[1] = (width - 150) / 3;
iconOffsets[2] = (width - 150) / 3;
} else {
loadGraphic(file, true, Math.floor(width / 2), Math.floor(150)); //Then load it fr // winning icons go br
loadGraphic(file, true, Math.floor(width / 2), Math.floor(height)); //Then load it fr // winning icons go br
iconOffsets[0] = (width - 150) / 2;
iconOffsets[1] = (width - 150) / 2;
}

updateHitbox();
if (width2/3 == 150) {
if (width2 == 450) {
animation.add(char, [0, 1, 2], 0, false, isPlayer);
} else {
animation.add(char, [0, 1], 0, false, isPlayer);
Expand Down
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using StringTools;

class MainMenuState extends MusicBeatState
{
public static var osEngineVersion:String = '1.5.0'; //This is also used for Discord RPC
public static var osEngineVersion:String = '1.5.1'; //This is also used for Discord RPC
public static var curSelected:Int = 0;

var menuItems:FlxTypedGroup<FlxSprite>;
Expand Down

0 comments on commit 02504bc

Please sign in to comment.