Crashbug Stringformatierung

Falscher Message-type Newbie-message
This commit is contained in:
Enno Rehling 2004-05-08 08:47:11 +00:00
parent 425cf5368d
commit 075bcbff4a
2 changed files with 5 additions and 8 deletions

View File

@ -2299,14 +2299,11 @@ report(FILE *F, faction * f, const faction_list * addresses,
w += weight(u); w += weight(u);
} }
} }
sprintf(buf, "%s, %s %s, (%d/%d)", sprintf(buf, "%s, %s, (%d/%d)",
shipname(sh), shipname(sh), LOC(f->locale, sh->type->name[0]),
LOC(f->locale, sh->type->name[0]), (w + 99) / 100, shipcapacity(sh) / 100);
(w + 99) / 100, /* +99 weil sonst die Nachkommastellen ignoriert würden */
shipcapacity(sh) / 100);
} else { } else {
sprintf(buf, "%s, %s", shipname(sh), sprintf(buf, "%s, %s", shipname(sh), LOC(f->locale, sh->type->name[0]));
LOC(f->locale, sh->type->name[0]));
} }
assert(sh->type->construction->improvement==NULL); /* sonst ist construction::size nicht ship_type::maxsize */ assert(sh->type->construction->improvement==NULL); /* sonst ist construction::size nicht ship_type::maxsize */

View File

@ -2226,7 +2226,7 @@
<arg name="turns" type="int"/> <arg name="turns" type="int"/>
<arg name="unit" type="unit"/> <arg name="unit" type="unit"/>
<arg name="region" type="region"/> <arg name="region" type="region"/>
<arg name="command" type="command"/> <arg name="command" type="order"/>
</type> </type>
<text locale="de">"Eine Partei muß mindestens $int($turns) Wochen alt sein, bevor sie angegriffen oder bestohlen werden kann."</text> <text locale="de">"Eine Partei muß mindestens $int($turns) Wochen alt sein, bevor sie angegriffen oder bestohlen werden kann."</text>
</message> </message>