Fix camera pausing + Fixes #317

This commit is contained in:
Ne_Eo
2024-09-02 19:00:16 +02:00
parent 6021bd36dc
commit 48758c8176
3 changed files with 9 additions and 9 deletions
+4 -2
View File
@@ -162,16 +162,18 @@ function postUpdate(elapsed) {
if (enableCameraHacks) {
for(p in strumLines)
p.notes.forEach(function(n) {
if(n.isSustainNote) return; // hacky fix for hold
n.y -= n.y % daPixelZoom;
n.x -= n.x % daPixelZoom;
});
}
var zoom = 1 / daPixelZoom / Math.min(FlxG.scaleMode.scale.x, FlxG.scaleMode.scale.y);
for(e in pixellyCameras) {
if (!e.exists) continue;
e.zoom = 1 / daPixelZoom / Math.min(FlxG.scaleMode.scale.x, FlxG.scaleMode.scale.y);
e.zoom = zoom;
}
for(e in pixellyShaders) {
e.pixelZoom = 1 / daPixelZoom / Math.min(FlxG.scaleMode.scale.x, FlxG.scaleMode.scale.y);
e.pixelZoom = zoom;
}
}
+2 -1
View File
@@ -73,7 +73,8 @@ function confText(text) {
}
function destroy() {
FlxG.cameras.remove(pauseCam);
if(FlxG.cameras.list.contains(pauseCam))
FlxG.cameras.remove(pauseCam);
}
var canDoShit = true;