summaryrefslogtreecommitdiff
path: root/src/settings.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-09 21:25:13 +0000
committerDarkvater <darkvater@openttd.org>2007-01-09 21:25:13 +0000
commit6c3187213d174617ddbd89b2c70da86f71c5f906 (patch)
tree275ce019147376c73a22d33b7d42d17f53321b9f /src/settings.c
parentfe1ac3c5d17a2017a92c0661eed136bd8812411e (diff)
downloadopenttd-6c3187213d174617ddbd89b2c70da86f71c5f906.tar.xz
(svn r8013) -Codechange (r6921, rUnknown): Show the error message of corrupt or missing (own) files
through a ShowInfo(F). This way windows users also see this message and bugs such as FS#528 will not happen anymore. Put ShowInfo(F) error output to stderr and not stdout.
Diffstat (limited to 'src/settings.c')
-rw-r--r--src/settings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.c b/src/settings.c
index b6d7fa895..2f509768f 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -247,7 +247,7 @@ static IniFile *ini_load(const char *filename)
// it's a group?
if (s[0] == '[') {
if (e[-1] != ']') {
- ShowInfoF("ini: invalid group name '%s'\n", buffer);
+ ShowInfoF("ini: invalid group name '%s'", buffer);
} else {
e--;
}
@@ -282,7 +282,7 @@ static IniFile *ini_load(const char *filename)
item->value = pool_strdup(&ini->pool, t, e - t);
} else {
// it's an orphan item
- ShowInfoF("ini: '%s' outside of group\n", buffer);
+ ShowInfoF("ini: '%s' outside of group", buffer);
}
}