summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorPavel Stupnikov <dp@dpointer.org>2018-04-24 20:19:01 +0300
committerfrosch <github@elsenhans.name>2018-04-24 19:19:00 +0200
commit8e4bce58ea299527003cd2da5ef8dcb5f84b7f23 (patch)
tree021526d154b99ec8a3821fb83295685338cbee9f /src/command.cpp
parent34b63930f58aa12d008af6006411bd4492fa8a4e (diff)
downloadopenttd-8e4bce58ea299527003cd2da5ef8dcb5f84b7f23.tar.xz
Feature: GS methods to scroll viewport for players (#6745)
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 959610cd2..df0cd004c 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -167,6 +167,7 @@ CommandProc CmdSetStoryPageDate;
CommandProc CmdShowStoryPage;
CommandProc CmdRemoveStoryPage;
CommandProc CmdRemoveStoryPageElement;
+CommandProc CmdScrollViewport;
CommandProc CmdLevelLand;
@@ -322,6 +323,7 @@ static const Command _command_proc_table[] = {
DEF_CMD(CmdShowStoryPage, CMD_DEITY, CMDT_OTHER_MANAGEMENT ), // CMD_SHOW_STORY_PAGE
DEF_CMD(CmdRemoveStoryPage, CMD_DEITY, CMDT_OTHER_MANAGEMENT ), // CMD_REMOVE_STORY_PAGE
DEF_CMD(CmdRemoveStoryPageElement, CMD_DEITY, CMDT_OTHER_MANAGEMENT ), // CMD_REMOVE_STORY_ELEMENT_PAGE
+ DEF_CMD(CmdScrollViewport, CMD_DEITY, CMDT_OTHER_MANAGEMENT ), // CMD_SCROLL_VIEWPORT
DEF_CMD(CmdLevelLand, CMD_ALL_TILES | CMD_NO_TEST | CMD_AUTO, CMDT_LANDSCAPE_CONSTRUCTION), // CMD_LEVEL_LAND; test run might clear tiles multiple times, in execution that only happens once