Skip to content

Commit

Permalink
Removed unecessary config (otland#4003)
Browse files Browse the repository at this point in the history
followup of otland@bdf8fa1
  • Loading branch information
EPuncker committed Mar 10, 2022
1 parent bdf8fa1 commit 816951e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion config.lua.dist
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ forceMonsterTypesOnLoad = true
cleanProtectionZones = false
luaItemDesc = false
showPlayerLogInConsole = true
analyserSendTrueRawExp = false

-- VIP and Depot limits
-- NOTE: you can set custom limits per group in data/XML/groups.xml
Expand Down
1 change: 0 additions & 1 deletion src/configmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ bool ConfigManager::load()
boolean[REMOVE_ON_DESPAWN] = getGlobalBoolean(L, "removeOnDespawn", true);
boolean[PLAYER_CONSOLE_LOGS] = getGlobalBoolean(L, "showPlayerLogInConsole", true);
boolean[TWO_FACTOR_AUTH] = getGlobalBoolean(L, "enableTwoFactorAuth", true);
boolean[EXP_ANALYSER_SEND_TRUE_RAW_EXP] = getGlobalBoolean(L, "analyserSendTrueRawExp", false);

string[DEFAULT_PRIORITY] = getGlobalString(L, "defaultPriority", "high");
string[SERVER_NAME] = getGlobalString(L, "serverName", "");
Expand Down
1 change: 0 additions & 1 deletion src/configmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class ConfigManager
REMOVE_ON_DESPAWN,
PLAYER_CONSOLE_LOGS,
TWO_FACTOR_AUTH,
EXP_ANALYSER_SEND_TRUE_RAW_EXP,

LAST_BOOLEAN_CONFIG /* this must be the last one */
};
Expand Down
1 change: 0 additions & 1 deletion src/luascript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,6 @@ void LuaScriptInterface::registerFunctions()
registerEnumIn("configKeys", ConfigManager::MAX_PACKETS_PER_SECOND)
registerEnumIn("configKeys", ConfigManager::PLAYER_CONSOLE_LOGS)
registerEnumIn("configKeys", ConfigManager::TWO_FACTOR_AUTH)
registerEnumIn("configKeys", ConfigManager::EXP_ANALYSER_SEND_TRUE_RAW_EXP)

// os
registerMethod("os", "mtime", LuaScriptInterface::luaSystemTime);
Expand Down
7 changes: 2 additions & 5 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1825,11 +1825,8 @@ void Player::addExperience(Creature* source, uint64_t exp, bool sendText/* = fal
levelPercent = 0;
}
sendStats();
if (g_config.getBoolean(ConfigManager::EXP_ANALYSER_SEND_TRUE_RAW_EXP)) {
sendExperienceTracker(rawExp, exp);
} else {
sendExperienceTracker(rawExp * g_config.getExperienceStage(getLevel()), exp);
}

sendExperienceTracker(rawExp * g_config.getExperienceStage(getLevel()), exp);
}

void Player::removeExperience(uint64_t exp, bool sendText/* = false*/)
Expand Down

0 comments on commit 816951e

Please sign in to comment.