mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
fps independent
This commit is contained in:
@@ -163,7 +163,7 @@ void MapView::postSwipe(uint32_t msPassed) {
|
|||||||
|
|
||||||
controller->setViewCenter(model->getMapViewCenter() + delta, model->getLevel());
|
controller->setViewCenter(model->getMapViewCenter() + delta, model->getLevel());
|
||||||
|
|
||||||
postSwipeSpeed /= 1.1;
|
postSwipeSpeed /= 1 + msPassed * 0.006;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user