From 6eb21e6d6797da4e0aa069f19497b7d5afb98b40 Mon Sep 17 00:00:00 2001 From: darkredtitan <70135297+darkredtitan@users.noreply.github.com> Date: Sun, 20 Sep 2020 19:53:33 +0200 Subject: [PATCH 1/2] Respect config.ini GM settings --- src/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database.cpp b/src/Database.cpp index 878774f..b71c528 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -159,7 +159,7 @@ int Database::createCharacter(sP_CL2LS_REQ_SAVE_CHAR_NAME* save, int AccountID) create.Height = 0; create.Level = 1; create.SkinColor = 1; - create.isGM = false; + create.isGM = settings::GM; create.x_coordinates = settings::SPAWN_X; create.y_coordinates = settings::SPAWN_Y; create.z_coordinates = settings::SPAWN_Z; From ff7c78d5455c81522372b348b3a9ebc6d2a62aa1 Mon Sep 17 00:00:00 2001 From: darkredtitan <70135297+darkredtitan@users.noreply.github.com> Date: Sun, 20 Sep 2020 20:50:58 +0200 Subject: [PATCH 2/2] Change default value for GM to true --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.cpp b/src/settings.cpp index a71fd76..e7a83ce 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -24,7 +24,7 @@ std::string settings::NPCJSON = "tdata/NPCs.json"; std::string settings::XDTJSON = "tdata/xdt.json"; std::string settings::MOBJSON = "tdata/mobs.json"; std::string settings::MOTDSTRING = "Welcome to OpenFusion!"; -bool settings::GM = false; +bool settings::GM = true; void settings::init() { INIReader reader("config.ini");