From 6cb4164c911d04fdb3c1da1d91296a1059f67635 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 20 Mar 2022 20:38:33 -0400 Subject: dashes should still happen when game lags --- src/game.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 98745f4..ca1f0f3 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -875,7 +875,7 @@ void Game::updatePlaying(size_t frameTime) { while (inputTimer.step()) { - if (!moving) { + if (!moving && !queueDash) { processKeys(keystate); } } @@ -1075,19 +1075,6 @@ void Game::updatePlaying(size_t frameTime) { recalculateRender(); } - /*zoomTimer.accumulate(frameTime); - while (zoomTimer.step()) - { - if (zooming) - { - zoomProgress++; - - if (zoomProgress == zoomLength) - { - zooming = false; - } - } - }*/ if (zooming) { zoomProgress.tick(frameTime); if (zoomProgress.isComplete()) { -- cgit 1.4.1