-
-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Ctrl + left click Centre view on ship depot opens a viewport centered on a power station #11577
Comments
I can confirm it on windows, but it's fine with wsl. And |
glx22
added a commit
to glx22/OpenTTD
that referenced
this issue
Dec 13, 2023
PeterN
added a commit
to PeterN/OpenTTD
that referenced
this issue
Dec 13, 2023
ExtraViewportWindow calls IninitializeViewport() with focus as 0, which is invalid as focus should be either a TileIndex or a VehicleID. Instead, pass the tile, and let InitializeViewport() set handle all the coordinates.
PeterN
added a commit
to PeterN/OpenTTD
that referenced
this issue
Dec 13, 2023
ExtraViewportWindow calls IninitializeViewport() with focus as 0, which is invalid as focus should be either a TileIndex or a VehicleID. Instead, pass the tile, and let InitializeViewport() set handle all the coordinates.
PeterN
added a commit
to PeterN/OpenTTD
that referenced
this issue
Dec 13, 2023
ExtraViewportWindow calls IninitializeViewport() with focus as 0, which is invalid as focus should be either a TileIndex or a VehicleID. Instead, pass the tile, and let InitializeViewport() set handle all the coordinates.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of OpenTTD
20231211-master-g0a8bcdd344
Expected result
Open a viewport centered on ship depot.
Actual result
Opens a viewport centered on a power station.
Steps to reproduce
The text was updated successfully, but these errors were encountered: