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

code review

This commit is contained in:
Michael
2023-08-27 12:09:26 +02:00
committed by GitHub
parent d1d0d6d62e
commit b77bccdc24
2 changed files with 8 additions and 4 deletions

View File

@@ -52,6 +52,10 @@ class MapView : public BasicMapView
std::vector<std::pair<uint32_t, Point>> swipeHistory;
double postSwipeAngle = 0.0;
double postSwipeSpeed = 0.0;
const int postSwipeCatchIntervalMs = 150;
const double postSwipeSlowdownSpeed = 0.006;
const double postSwipeMinimalSpeed = 0.1;
void postSwipe(uint32_t msPassed);