mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
committed by
GitHub
parent
530dfac7c9
commit
e9c480c66e
@@ -1646,7 +1646,12 @@ bool InputTestPlaceObjectModifier(PLACE_OBJECT_MODIFIER modifier)
|
||||
void InputScrollViewport(const ScreenCoordsXY& scrollScreenCoords)
|
||||
{
|
||||
WindowBase* mainWindow = WindowGetMain();
|
||||
if (mainWindow == nullptr)
|
||||
return;
|
||||
|
||||
Viewport* viewport = mainWindow->viewport;
|
||||
if (viewport == nullptr)
|
||||
return;
|
||||
|
||||
const int32_t speed = gConfigGeneral.EdgeScrollingSpeed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user