Skip to content

Commit f987cdb

Browse files
committed
Merge branch 'patch-2' of https://github.com/JordanSantiagoYT/FNF-JS-Engine into patch-2
2 parents 660b168 + 6eb0897 commit f987cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/HealthIcon.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class HealthIcon extends FlxSprite
110110
playAnim('normal');
111111
} else { // This is just an attempt for other icon support, will detect is less than 300 or more than 300. If 300 or less, only 2 icons, if more, 3 icons.
112112
var num:Int = Std.int(Math.round(file.width / file.height));
113-
if (file.width % file.height != 0) {
113+
if (file.width % file.height != 0 || num >= 4) {
114114
// weird icon, maybe has padding?
115115
num = 3; // fallback
116116
}

0 commit comments

Comments
 (0)