From f26de0d2f9d1e84bc791fed6c17b8e4816479794 Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 13 Jun 2023 10:33:33 +0200 Subject: [PATCH] Fix #10982: No help text for gamelog command (#10984) --- src/console_cmds.cpp | 5 +++++ src/gamelog.cpp | 2 +- src/gamelog.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 111017c0cc..5ac065cdd1 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -2105,6 +2105,11 @@ DEF_CONSOLE_CMD(ConListSettings) DEF_CONSOLE_CMD(ConGamelogPrint) { + if (argc == 0) { + IConsolePrint(CC_HELP, "Print logged fundamental changes to the game since the start. Usage: 'gamelog'."); + return true; + } + _gamelog.PrintConsole(); return true; } diff --git a/src/gamelog.cpp b/src/gamelog.cpp index cf0fe4e3b6..3d2a1b46ab 100644 --- a/src/gamelog.cpp +++ b/src/gamelog.cpp @@ -5,7 +5,7 @@ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see . */ -/** @file gamelog.cpp Definition of functions used for logging of important changes in the game */ +/** @file gamelog.cpp Definition of functions used for logging of fundamental changes to the game */ #include "stdafx.h" #include "saveload/saveload.h" diff --git a/src/gamelog.h b/src/gamelog.h index 653a0fec4d..0383169335 100644 --- a/src/gamelog.h +++ b/src/gamelog.h @@ -5,7 +5,7 @@ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see . */ -/** @file gamelog.h Functions to be called to log possibly unsafe game events */ +/** @file gamelog.h Functions to be called to log fundamental changes to the game */ #ifndef GAMELOG_H #define GAMELOG_H