Skip to content

Commit

Permalink
biggest micro optimization the world has ever seen
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed Apr 15, 2024
1 parent b60ceec commit 6baf2b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/preload/data/stages/limo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function startGore()
function updatePost()
{
if (!carCanDrive) {
if (FlxG.mouse.overlaps(car) && FlxG.mouse.justPressed)
if (BUILD_TARGET != "android" && FlxG.mouse.overlaps(car) && FlxG.mouse.justPressed)
WeekSetup.loadSong("", "ridge", "normal");
}

Expand Down
7 changes: 3 additions & 4 deletions source/flixel/graphics/tile/FlxDrawBaseItem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ abstract class FlxDrawBaseItem<T>
}
}

enum abstract FlxDrawItemType(Int)
{
var TILES = 0;
var TRIANGLES = 1;
enum abstract FlxDrawItemType(Bool) {
var TILES = false;
var TRIANGLES = true;
}
3 changes: 2 additions & 1 deletion source/funkin/objects/note/NoteStrum.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class NoteStrum extends FlxSpriteExt implements INoteData {
public var curSkin:String = '';

public var controlFunction:InputType->Bool;
public var strumActive:Bool = true;

public function getControl(inputType:InputType = PRESSED):Bool {
if (controlFunction != null)
if (strumActive) if (controlFunction != null)
return controlFunction(inputType);

return false;
Expand Down
3 changes: 2 additions & 1 deletion source/funkin/states/options/LatencyState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class LatencyState extends MusicBeatState

override function create()
{
if (FlxG.sound.music != null) FlxG.sound.music.stop();
if (FlxG.sound.music != null)
FlxG.sound.music.stop();

var bg:FunkinSprite = new FunkinSprite('options/latencyDesat');
bg.color = 0xff2b2b2b;
Expand Down

0 comments on commit 6baf2b6

Please sign in to comment.