Fix #10982: No help text for gamelog command (#10984)

pull/603/head
Andrii 12 months ago committed by GitHub
parent ebc451b071
commit f26de0d2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

@ -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 <http://www.gnu.org/licenses/>.
*/
/** @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"

@ -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 <http://www.gnu.org/licenses/>.
*/
/** @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

Loading…
Cancel
Save