mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
fps independent
This commit is contained in:
parent
4137a66f2a
commit
d1d0d6d62e
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user