allow preset positions that don't size and position weirdly

This commit is contained in:
2023-09-25 19:49:56 -06:00
parent 688a4a2684
commit 79307c5516

View File

@@ -379,10 +379,10 @@
(doFor plate plates (FlxG.state.remove plate true)) (doFor plate plates (FlxG.state.remove plate true))
(set plates null))) (set plates null)))
(method putPresetPosition [key x y z] (method putPresetPosition [key x y z &opt :Bool notSpecial]
(let [pos (new StagePosition (Std.int x) (Std.int y) (Std.int z))] (let [pos (new StagePosition (Std.int x) (Std.int y) (Std.int z))]
(stagePositions.put key pos) (stagePositions.put key pos)
(dictSet presetPositions (pos.stringify) true))) (unless notSpecial (dictSet presetPositions (pos.stringify) true))))
(method &override :Void createCameras [] (method &override :Void createCameras []
(unless uiCamera (unless uiCamera