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:
Scott Ehlert
2007-04-05 10:55:40 +00:00
parent 5ee48f60a2
commit e677d5d5de
7 changed files with 139 additions and 141 deletions
+5 -9
View File
@@ -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;
}