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

@@ -200,16 +200,6 @@ ScriptObject::ActiveInstance::~ActiveInstance()
return GetStorage()->allow_do_command;
}
/* static */ void ScriptObject::SetTimeMode(bool calendar)
{
GetStorage()->time_mode = calendar;
}
/* static */ bool ScriptObject::IsCalendarTimeMode()
{
return GetStorage()->time_mode;
}
/* static */ void ScriptObject::SetCompany(CompanyID company)
{
if (GetStorage()->root_company == INVALID_OWNER) GetStorage()->root_company = company;