Permalink
Browse files

* Rename a constant (ZOOM => ZOOM_DEFAULT)

  • Loading branch information...
1 parent 3adfaba commit cda72a61898cfe4573c0419b6d213a9fa227d48f @ChrisOelmueller ChrisOelmueller committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 horizons/constants.py
  2. +1 −1 horizons/view.py
View
@@ -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
@@ -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 = {}

0 comments on commit cda72a6

Please sign in to comment.