|
@@ -169,10 +169,10 @@ void AdventureMapInterface::tick(uint32_t msPassed)
|
|
|
void AdventureMapInterface::handleMapScrollingUpdate(uint32_t timePassed)
|
|
|
{
|
|
|
/// Width of window border, in pixels, that triggers map scrolling
|
|
|
- static constexpr uint32_t borderScrollWidth = 15;
|
|
|
+ static constexpr int32_t borderScrollWidth = 15;
|
|
|
|
|
|
- uint32_t scrollSpeedPixels = settings["adventure"]["scrollSpeedPixels"].Float();
|
|
|
- uint32_t scrollDistance = scrollSpeedPixels * timePassed / 1000;
|
|
|
+ int32_t scrollSpeedPixels = settings["adventure"]["scrollSpeedPixels"].Float();
|
|
|
+ int32_t scrollDistance = scrollSpeedPixels * timePassed / 1000;
|
|
|
|
|
|
Point cursorPosition = GH.getCursorPosition();
|
|
|
Point scrollDirection;
|