Skip to content

Commit

Permalink
revert to pre 1.0
Browse files Browse the repository at this point in the history
should make github think im not changing this part of the code
  • Loading branch information
LarryFrosty authored Aug 23, 2024
1 parent dddb6f3 commit 272f05e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/psychlua/LuaUtils.hx
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,9 @@ class LuaUtils

public static function cameraFromString(cam:String):FlxCamera {
switch(cam.toLowerCase()) {
case 'camgame' | 'game': return PlayState.instance.camGame;
case 'camhud' | 'hud': return PlayState.instance.camHUD;
case 'camother' | 'other': return PlayState.instance.camOther;
}
var camera:FlxCamera = MusicBeatState.getVariables().get(cam);
if (camera == null || !Std.isOfType(camera, FlxCamera)) camera = PlayState.instance.camGame;
return camera;
return PlayState.instance.camGame;
}
}

0 comments on commit 272f05e

Please sign in to comment.