Various things:
- Fixed inline translations when using %T - "Improved" caching of server language - Renamed Translator::GetServerLanguageCode() to GetServerLanguage() - Added some more comments to sm_globals.h - Natives folder in project file mysteriously was moved inside Interfaces, so moved it back o_O - DS hates empty if statements :o --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40675
This commit is contained in:
+5
-9
@@ -34,10 +34,11 @@ ConfigResult Logger::OnSourceModConfigChanged(const char *key,
|
||||
{
|
||||
if (strcasecmp(key, "Logging") == 0)
|
||||
{
|
||||
bool state = true;
|
||||
bool state;
|
||||
|
||||
if (strcasecmp(value, "on") == 0)
|
||||
{
|
||||
state = true;
|
||||
} else if (strcasecmp(value, "off") == 0) {
|
||||
state = false;
|
||||
} else {
|
||||
@@ -47,12 +48,7 @@ ConfigResult Logger::OnSourceModConfigChanged(const char *key,
|
||||
|
||||
if (source == ConfigSource_Console)
|
||||
{
|
||||
if (state && !m_Active)
|
||||
{
|
||||
EnableLogging();
|
||||
} else if (!state && m_Active) {
|
||||
DisableLogging();
|
||||
}
|
||||
state ? EnableLogging() : DisableLogging();
|
||||
} else {
|
||||
m_InitialState = state;
|
||||
}
|
||||
@@ -412,7 +408,7 @@ void Logger::EnableLogging()
|
||||
return;
|
||||
}
|
||||
m_Active = true;
|
||||
LogMessage("Logging enabled manually by user.");
|
||||
LogMessage("[SM] Logging enabled manually by user.");
|
||||
}
|
||||
|
||||
void Logger::DisableLogging()
|
||||
@@ -421,7 +417,7 @@ void Logger::DisableLogging()
|
||||
{
|
||||
return;
|
||||
}
|
||||
LogMessage("Logging disabled manually by user.");
|
||||
LogMessage("[SM] Logging disabled manually by user.");
|
||||
m_Active = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user