(a17abe3fa) Remove a not so useful loop from a method, which might be used often.
This commit is contained in:
@@ -184,7 +184,7 @@ namespace Barotrauma
|
||||
worldView = new Rectangle(0, 0, GameMain.GraphicsWidth, GameMain.GraphicsHeight);
|
||||
viewMatrix = Matrix.CreateTranslation(new Vector3(GameMain.GraphicsWidth / 2.0f, GameMain.GraphicsHeight / 2.0f, 0));
|
||||
|
||||
globalZoomScale = (float)Math.Pow(new Vector2(resolution.X, resolution.Y).Length() / new Vector2(1920, 1080).Length(), 2);
|
||||
globalZoomScale = new Vector2(resolution.X, resolution.Y).Length() / new Vector2(1920, 1080).Length();
|
||||
}
|
||||
|
||||
public void UpdateTransform(bool interpolate = true)
|
||||
|
||||
Reference in New Issue
Block a user