|
OpenTTD Source 20251117-master-g7398d2e290
|
Command definitions related to viewports. More...
Go to the source code of this file.
Functions | |
| CommandCost | CmdScrollViewport (DoCommandFlags flags, TileIndex tile, ViewportScrollTarget target, uint32_t ref) |
| Scroll players main viewport. | |
Command definitions related to viewports.
Definition in file viewport_cmd.h.
| CommandCost CmdScrollViewport | ( | DoCommandFlags | flags, |
| TileIndex | tile, | ||
| ViewportScrollTarget | target, | ||
| uint32_t | ref | ||
| ) |
Scroll players main viewport.
| flags | type of operation |
| tile | tile to center viewport on |
| target | ViewportScrollTarget of scroll target |
| ref | company or client id depending on the target |
Definition at line 3609 of file viewport.cpp.
References _current_company, _local_company, _network_own_client_id, CMD_ERROR, Execute, OWNER_DEITY, ResetObjectToPlace(), ScrollMainWindowToTile(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), VST_CLIENT, VST_COMPANY, and VST_EVERYONE.