OpenTTD Source  20240919-master-gdf0233f4c2
cheat_func.h File Reference
#include "cheat_type.h"

Go to the source code of this file.

Functions

void ShowCheatWindow ()
 Open cheat window.
 
bool CheatHasBeenUsed ()
 Return true if any cheat has been used, false otherwise. More...
 

Variables

Cheats _cheats
 All the cheats.
 

Detailed Description

Functions related to cheating.

Definition in file cheat_func.h.

Function Documentation

◆ CheatHasBeenUsed()

bool CheatHasBeenUsed ( )

Return true if any cheat has been used, false otherwise.

Returns
has a cheat been used?

Definition at line 28 of file cheat.cpp.

References _cheats, and Cheat::been_used.

Referenced by SaveHighScoreValue().