summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 10:09:14 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 10:09:14 -0400
commit6cfe247b362106543bbb1a835dde9e7da9128fee (patch)
tree76a24a4b241df6f6dea9ae6774c80d944062775f /src/game.cpp
parent0a39ccd0b0c5b855fa7b5dea2082ced774923a62 (diff)
downloadether-6cfe247b362106543bbb1a835dde9e7da9128fee.tar.gz
ether-6cfe247b362106543bbb1a835dde9e7da9128fee.tar.bz2
ether-6cfe247b362106543bbb1a835dde9e7da9128fee.zip
fixed jitter while moving and zooming
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 31c682c..f048400 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -613,8 +613,6 @@ void Game::setZoom(size_t zoom)
613 return; 613 return;
614 } 614 }
615 615
616 /*zoomProgress = 0;
617 zoomLength = std::abs(static_cast<long>(zoom - curZoom)) * TILE_WIDTH;*/
618 zoomProgress.start(62 * std::abs(static_cast<long>(zoom) - curZoom) * TILE_WIDTH); 616 zoomProgress.start(62 * std::abs(static_cast<long>(zoom) - curZoom) * TILE_WIDTH);
619 oldZoom = curZoom; 617 oldZoom = curZoom;
620 curZoom = zoom; 618 curZoom = zoom;