Holding F gives old mousewheel zoom functionality

This commit is contained in:
juanjp600
2016-10-08 18:55:27 -03:00
parent 3de4645357
commit b09eebc9c2
2 changed files with 2 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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;
}