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

Commit 02504bc

Browse files
committed
fixed icons crash????????
1 parent 31169aa commit 02504bc

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

source/HealthIcon.hx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ class HealthIcon extends FlxSprite
4444

4545
loadGraphic(file); //Load stupidly first for getting the file size
4646
var width2 = width;
47-
if (width/3 == 150) {
48-
loadGraphic(file, true, Math.floor(width / 3), Math.floor(150)); //Then load it fr // winning icons go br
47+
if (width == 450) {
48+
loadGraphic(file, true, Math.floor(width / 3), Math.floor(height)); //Then load it fr // winning icons go br
4949
iconOffsets[0] = (width - 150) / 3;
5050
iconOffsets[1] = (width - 150) / 3;
5151
iconOffsets[2] = (width - 150) / 3;
5252
} else {
53-
loadGraphic(file, true, Math.floor(width / 2), Math.floor(150)); //Then load it fr // winning icons go br
53+
loadGraphic(file, true, Math.floor(width / 2), Math.floor(height)); //Then load it fr // winning icons go br
5454
iconOffsets[0] = (width - 150) / 2;
5555
iconOffsets[1] = (width - 150) / 2;
5656
}
5757

5858
updateHitbox();
59-
if (width2/3 == 150) {
59+
if (width2 == 450) {
6060
animation.add(char, [0, 1, 2], 0, false, isPlayer);
6161
} else {
6262
animation.add(char, [0, 1], 0, false, isPlayer);

source/MainMenuState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using StringTools;
3030

3131
class MainMenuState extends MusicBeatState
3232
{
33-
public static var osEngineVersion:String = '1.5.0'; //This is also used for Discord RPC
33+
public static var osEngineVersion:String = '1.5.1'; //This is also used for Discord RPC
3434
public static var curSelected:Int = 0;
3535

3636
var menuItems:FlxTypedGroup<FlxSprite>;

0 commit comments

Comments
 (0)