mirror of https://github.com/OpenTTD/OpenTTD
parent
ebc451b071
commit
f26de0d2f9
|
@ -2105,6 +2105,11 @@ DEF_CONSOLE_CMD(ConListSettings)
|
||||||
|
|
||||||
DEF_CONSOLE_CMD(ConGamelogPrint)
|
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();
|
_gamelog.PrintConsole();
|
||||||
return true;
|
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/>.
|
* 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 "stdafx.h"
|
||||||
#include "saveload/saveload.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/>.
|
* 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
|
#ifndef GAMELOG_H
|
||||||
#define GAMELOG_H
|
#define GAMELOG_H
|
||||||
|
|
Loading…
Reference in New Issue