From 075bcbff4a4d4349c13dc4c1d12921781e1bdf92 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 8 May 2004 08:47:11 +0000 Subject: [PATCH] Crashbug Stringformatierung Falscher Message-type Newbie-message --- src/common/gamecode/report.c | 11 ++++------- src/res/messages.xml | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 9b616a464..e844217ae 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -2299,14 +2299,11 @@ report(FILE *F, faction * f, const faction_list * addresses, w += weight(u); } } - sprintf(buf, "%s, %s %s, (%d/%d)", - shipname(sh), - LOC(f->locale, sh->type->name[0]), - (w + 99) / 100, /* +99 weil sonst die Nachkommastellen ignoriert würden */ - shipcapacity(sh) / 100); + sprintf(buf, "%s, %s, (%d/%d)", + shipname(sh), LOC(f->locale, sh->type->name[0]), + (w + 99) / 100, shipcapacity(sh) / 100); } else { - sprintf(buf, "%s, %s", shipname(sh), - LOC(f->locale, sh->type->name[0])); + sprintf(buf, "%s, %s", shipname(sh), LOC(f->locale, sh->type->name[0])); } assert(sh->type->construction->improvement==NULL); /* sonst ist construction::size nicht ship_type::maxsize */ diff --git a/src/res/messages.xml b/src/res/messages.xml index 3ddff12ef..3396475ef 100644 --- a/src/res/messages.xml +++ b/src/res/messages.xml @@ -2226,7 +2226,7 @@ - + "Eine Partei muß mindestens $int($turns) Wochen alt sein, bevor sie angegriffen oder bestohlen werden kann."