1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

fps independent

This commit is contained in:
Michael
2023-08-27 02:35:10 +02:00
committed by GitHub
parent 4137a66f2a
commit d1d0d6d62e

View File

@@ -163,7 +163,7 @@ void MapView::postSwipe(uint32_t msPassed) {
controller->setViewCenter(model->getMapViewCenter() + delta, model->getLevel());
postSwipeSpeed /= 1.1;
postSwipeSpeed /= 1 + msPassed * 0.006;
}
}
@@ -208,4 +208,4 @@ PuzzleMapView::PuzzleMapView(const Point & offset, const Point & dimensions, con
controller->activatePuzzleMapContext(tileToCenter);
controller->setViewCenter(tileToCenter);
}
}