Merge branch 'master' into jgrpp
# Conflicts: # src/music.cpp # src/script/api/script_company.cpp # src/script/api/script_event_types.cpp # src/script/api/script_group.cpp # src/script/api/script_object.cpp # src/script/api/script_road.cpp
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
/* static */ bool ScriptEngine::IsValidEngine(EngineID engine_id)
|
||||
{
|
||||
EnforceDeityOrCompanyModeValid(false);
|
||||
const Engine *e = ::Engine::GetIfValid(engine_id);
|
||||
if (e == nullptr || !e->IsEnabled()) return false;
|
||||
|
||||
@@ -34,6 +35,7 @@
|
||||
|
||||
/* static */ bool ScriptEngine::IsBuildable(EngineID engine_id)
|
||||
{
|
||||
EnforceDeityOrCompanyModeValid(false);
|
||||
const Engine *e = ::Engine::GetIfValid(engine_id);
|
||||
return e != nullptr && ::IsEngineBuildable(engine_id, e->type, ScriptObject::GetCompany());
|
||||
}
|
||||
|
Reference in New Issue
Block a user