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

@@ -41,7 +41,6 @@ private:
class ScriptObject *mode_instance; ///< The instance belonging to the current build mode.
ScriptAsyncModeProc *async_mode; ///< The current command async mode we are in.
class ScriptObject *async_mode_instance; ///< The instance belonging to the current command async mode.
bool time_mode; ///< True if we in calendar time mode, or false (default) if we are in economy time mode.
CompanyID root_company; ///< The root company, the company that the script really belongs to.
CompanyID company; ///< The current company.
@@ -71,7 +70,6 @@ public:
mode_instance (nullptr),
async_mode (nullptr),
async_mode_instance (nullptr),
time_mode (false),
root_company (INVALID_OWNER),
company (INVALID_OWNER),
delay (1),