diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-18 23:04:04 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-18 23:04:04 -0400 |
| commit | d1ec962c788286d0eca331ac33b3dd1867618ddb (patch) | |
| tree | 75a69270a8e53b68b3e5c721651e63b70b268be2 /src/game.h | |
| parent | 4e228fc4ea0189be7f28eba68d59b99841f91aab (diff) | |
| download | ether-d1ec962c788286d0eca331ac33b3dd1867618ddb.tar.gz ether-d1ec962c788286d0eca331ac33b3dd1867618ddb.tar.bz2 ether-d1ec962c788286d0eca331ac33b3dd1867618ddb.zip | |
fixed a lot of the zoom problems
still looks weird while moving
Diffstat (limited to 'src/game.h')
| -rw-r--r-- | src/game.h | 4 |
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/game.h b/src/game.h index c75d43b..6e676ae 100644 --- a/src/game.h +++ b/src/game.h | |||
| @@ -82,12 +82,14 @@ public: | |||
| 82 | 82 | ||
| 83 | int maxZoom = INIT_ZOOM; | 83 | int maxZoom = INIT_ZOOM; |
| 84 | int curZoom = INIT_ZOOM; | 84 | int curZoom = INIT_ZOOM; |
| 85 | int oldZoom; | 85 | int oldZoom = INIT_ZOOM; |
| 86 | bool zooming = false; | 86 | bool zooming = false; |
| 87 | //int zoomProgress = 0; | 87 | //int zoomProgress = 0; |
| 88 | //int zoomLength; | 88 | //int zoomLength; |
| 89 | Interpolation zoomProgress; | 89 | Interpolation zoomProgress; |
| 90 | 90 | ||
| 91 | double getZoomBasis() const { return zooming ? std::max(curZoom, oldZoom) : curZoom; } | ||
| 92 | |||
| 91 | Input keystate; | 93 | Input keystate; |
| 92 | bool firstInput = false; | 94 | bool firstInput = false; |
| 93 | Input lastInput; | 95 | Input lastInput; |
