From ce6a4e4032db42d8e60a13439e3f167ebb01953e Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 19 Oct 2017 10:26:03 +0800 Subject: [PATCH] [Server] Fix indents --- apps/openmw-mp/Script/LuaState.cpp | 10 +++++----- apps/openmw-mp/main.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/openmw-mp/Script/LuaState.cpp b/apps/openmw-mp/Script/LuaState.cpp index 4d3835884..02edb8044 100644 --- a/apps/openmw-mp/Script/LuaState.cpp +++ b/apps/openmw-mp/Script/LuaState.cpp @@ -501,14 +501,14 @@ void LuaState::loadMods(std::vector *list) vector::iterator> sortedPluginList; - if(list != nullptr && !list->empty()) // manual sorted list + if (list != nullptr && !list->empty()) // manual sorted list { - for(const auto &mssp : *list) + for (const auto &mssp : *list) { bool found = false; for (auto it = mods.begin(); it != mods.end(); ++it) { - if(it->name == mssp) + if (it->name == mssp) { checkDependencies(mods, *it, false); // check dependencies, but do not throw exceptions sortedPluginList.push_back(it); @@ -516,14 +516,14 @@ void LuaState::loadMods(std::vector *list) break; } } - if(!found) + if (!found) throw runtime_error("Plugin: \"" + mssp + "\" not found"); } } else sortedPluginList = loadOrderSolver(mods); - for(auto &&mod : sortedPluginList) + for (auto &&mod : sortedPluginList) { mod->env = openScript(mod->path.first, mod->path.second); diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 3324b828f..96e4a7e7e 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) - if(mgr.getBool("autoSort", "Plugins")) + if (mgr.getBool("autoSort", "Plugins")) networking.getState().loadMods(); else { @@ -259,7 +259,7 @@ int main(int argc, char *argv[]) for (int i = 0;; ++i) list.push_back(mgr.getString("Plugin" + to_string(i), "Plugins")); } - catch(...) {} // Manager::getString throws runtime_error exception if setting is not exist + catch (...) {} // Manager::getString throws runtime_error exception if setting is not exist networking.getState().loadMods(&list); }