Skip to content

Commit

Permalink
(feature) allow config to be reloaded without server restart. (#38)
Browse files Browse the repository at this point in the history
* Allow config to be reloaded without server restart.

* comment unused variables

---------

Co-authored-by: Walter Pagani <paganiwalter@gmail.com>
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
  • Loading branch information
3 people authored Mar 15, 2024
1 parent 99eac7f commit 84f2e1a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Solocraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ class SolocraftConfig : public WorldScript
public:
SolocraftConfig() : WorldScript("SolocraftConfig") {}

void OnBeforeConfigLoad(bool reload) override
void OnBeforeConfigLoad(bool /*reload*/) override
{
if (!reload) {
// Load Configuration Settings
SetInitialWorldSettings();
}
// Load Configuration Settings
SetInitialWorldSettings();
}

// Load Configuration Settings
Expand Down Expand Up @@ -528,7 +526,7 @@ class SolocraftPlayerInstanceHandler : public PlayerScript

int SpellPowerBonus = 0;

// Check for an existing No XP Gain flag - other mod compatibility
// Check for an existing No XP Gain flag - other mod compatibility
if (player->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_NO_XP_GAIN))
{
SolocraftNoXPFlag = 1;
Expand Down

0 comments on commit 84f2e1a

Please sign in to comment.