1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-09 13:14:02 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}