Unstable 1.8.4.0

This commit is contained in:
Markus Isberg
2025-03-12 12:56:27 +00:00
parent a4c3e868e4
commit a4a3427e4e
627 changed files with 29860 additions and 10018 deletions
@@ -76,11 +76,14 @@ namespace Barotrauma
float zoom = (float)texWidth / (float)boundingBox.Width;
int texHeight = (int)(zoom * boundingBox.Height);
Camera cam = new Camera();
Camera cam = new Camera()
{
AutoUpdateToScreenResolution = false,
MaxZoom = zoom,
MinZoom = zoom * 0.5f,
Zoom = zoom
};
cam.SetResolution(new Point(texWidth, texHeight));
cam.MaxZoom = zoom;
cam.MinZoom = zoom * 0.5f;
cam.Zoom = zoom;
cam.Position = boundingBox.Center.ToVector2();
cam.UpdateTransform(false);