Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Rename a constant (ZOOM => ZOOM_DEFAULT)

  • Loading branch information...
commit cda72a61898cfe4573c0419b6d213a9fa227d48f 1 parent 3adfaba
@ChrisOelmueller ChrisOelmueller authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  horizons/constants.py
  2. +1 −1  horizons/view.py
View
2  horizons/constants.py
@@ -311,11 +311,11 @@ class COLORS:
class VIEW:
ZOOM_MAX = 1
ZOOM_MIN = 0.25
+ ZOOM_DEFAULT = 1
ZOOM_LEVELS_FACTOR = 0.875
CELL_IMAGE_DIMENSIONS = (64, 32)
ROTATION = 45.0
TILT = -60
- ZOOM = 1
## The Production States available in the game sorted by importance from least
## to most important
View
2  horizons/view.py
@@ -67,7 +67,7 @@ def __init__(self, session):
self.cam.setCellImageDimensions(*VIEW.CELL_IMAGE_DIMENSIONS)
self.cam.setRotation(VIEW.ROTATION)
self.cam.setTilt(VIEW.TILT)
- self.cam.setZoom(VIEW.ZOOM)
+ self.cam.setZoom(VIEW.ZOOM_DEFAULT)
self.cam.resetRenderers()
self.renderer = {}
Please sign in to comment.
Something went wrong with that request. Please try again.