From b6a5e41b5181f48dacb848d832abb68d18af52be Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Dec 2020 14:08:13 +0100 Subject: [PATCH] Style fixes. --- src/ScriptResolving/AngelScript/AngelScriptResolver.cpp | 4 ++-- src/ScriptResolving/AngelScript/AngelScriptResolver.hpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index fd2046a..81e0b38 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp @@ -66,7 +66,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg, _engine->SetEngineProperty(asEP_PROPERTY_ACCESSOR_MODE, 2); _engine->SetEngineProperty(asEP_COMPILER_WARNINGS, 2); - if (includeStandard){ + if (includeStandard) { RegisterStdString(_engine); ConstStringRegister::Register(_engine); @@ -84,7 +84,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg, RegisterTypes(); RegisterExceptionRoutines(_engine); - if (library != nullptr){ + if (library != nullptr) { auto& staticLib = library->GetStaticLib(); _engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get()); } diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp index cc6f1ea..8562b2c 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp @@ -37,9 +37,7 @@ public: _engine->ShutDownAndRelease(); } - void Initialize(CreatureLib::Battling::BattleLibrary* library) override{ - Initialize(library, true); - } + void Initialize(CreatureLib::Battling::BattleLibrary* library) override { Initialize(library, true); } void Initialize(CreatureLib::Battling::BattleLibrary* library, bool includeStandard); void CreateScript(const char* name, const char* script); const asIScriptModule* GetMainModule() const noexcept { return _mainModule; }