Holding F gives old mousewheel zoom functionality
This commit is contained in:
@@ -201,7 +201,7 @@ namespace Barotrauma
|
||||
Vector2 diffViewCenter;
|
||||
diffViewCenter = ((mouseInWorld - Position) * Zoom);
|
||||
Zoom = MathHelper.Clamp(zoom + (PlayerInput.ScrollWheelSpeed / 1000.0f) * zoom, GameMain.DebugDraw ? 0.01f : 0.1f, 2.0f);
|
||||
Position = mouseInWorld - (diffViewCenter / Zoom);
|
||||
if (!PlayerInput.KeyDown(Keys.F)) Position = mouseInWorld - (diffViewCenter / Zoom);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -971,7 +971,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
if (cargoSpawnPos == null)
|
||||
{
|
||||
DebugConsole.ThrowError("Couldn't spawn additional cargo (cargo spawnpoint now found)");
|
||||
DebugConsole.ThrowError("Couldn't spawn additional cargo (cargo spawnpoint not found)");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user