From d1ec962c788286d0eca331ac33b3dd1867618ddb Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 18 Mar 2022 23:04:04 -0400 Subject: fixed a lot of the zoom problems still looks weird while moving --- src/game.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game.h') 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: int maxZoom = INIT_ZOOM; int curZoom = INIT_ZOOM; - int oldZoom; + int oldZoom = INIT_ZOOM; bool zooming = false; //int zoomProgress = 0; //int zoomLength; Interpolation zoomProgress; + double getZoomBasis() const { return zooming ? std::max(curZoom, oldZoom) : curZoom; } + Input keystate; bool firstInput = false; Input lastInput; -- cgit 1.4.1