Skip to content

Commit

Permalink
Fixed bug where zooming out caused crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
ra314 committed Sep 22, 2021
1 parent 30117c7 commit 899f450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Levels/Level Components/Camera2D.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func zoom_out():
zoom *= 2
# Center camera if already at max zoom
else:
position = Vector2(0,0)
position = Vector2(1,1)

func _input(event):
if event is InputEventMouseButton:
Expand Down

0 comments on commit 899f450

Please sign in to comment.