Revert bbdbf9a: ScriptTimeMode was not the best solution for economy/calendar support

This commit is contained in:
glx22
2024-03-23 17:41:13 +01:00
committed by Loïc Guilloux
parent 603154899a
commit 704e871a0e
9 changed files with 5 additions and 130 deletions

View File

@@ -244,20 +244,6 @@ protected:
*/
static bool GetAllowDoCommand();
/**
* Set if the script is running in calendar time or economy time mode.
* Calendar time is used by OpenTTD for technology like vehicle introductions and expiration, and variable snowline. It can be sped up or slowed down by the player.
* Economy time always runs at the same pace and handles things like cargo production, everything related to money, etc.
* @param Calendar Should we use calendar time mode? (Set to false for economy time mode.)
*/
static void SetTimeMode(bool calendar);
/**
* Check if the script is operating in calendar time mode, or in economy time mode. See SetTimeMode() for more information.
* @return True if we are in calendar time mode, false if we are in economy time mode.
*/
static bool IsCalendarTimeMode();
/**
* Set the current company to execute commands for or request
* information about.