mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +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());
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user