immer noch ein paar kinks in den messages - automatische konvertierung war nicht 100% foolproof

This commit is contained in:
Enno Rehling 2001-04-25 06:38:02 +00:00
parent af7cd1f1b2
commit 42480c7a58
2 changed files with 4 additions and 4 deletions

View File

@ -379,12 +379,12 @@ render_messages(FILE * F, faction * f, message_list *msgs)
{ {
struct mlist* m = msgs->begin; struct mlist* m = msgs->begin;
while (m) { while (m) {
char crbuffer[1024]; char crbuffer[1024*32]; /* gross, wegen spionage-messages :-( */
boolean printed = false; boolean printed = false;
const struct message_type * mtype = m->msg->type; const struct message_type * mtype = m->msg->type;
unsigned int hash = hashstring(mtype->name); unsigned int hash = hashstring(mtype->name);
#if RENDER_CRMESSAGES #if RENDER_CRMESSAGES
char nrbuffer[4096]; char nrbuffer[1024*32];
nrbuffer[0] = '\0'; nrbuffer[0] = '\0';
if (nr_render(m->msg, f->locale, nrbuffer, f)==0 && nrbuffer[0]) { if (nr_render(m->msg, f->locale, nrbuffer, f)==0 && nrbuffer[0]) {
fprintf(F, "MESSAGE %d\n", ++msgno); fprintf(F, "MESSAGE %d\n", ++msgno);

View File

@ -4042,11 +4042,11 @@
<arg name="command" type="string"></arg> <arg name="command" type="string"></arg>
<arg name="unit" type="unit"></arg> <arg name="unit" type="unit"></arg>
<arg name="amount" type="int"></arg> <arg name="amount" type="int"></arg>
<arg name="item" type="resource"></arg> <arg name="item" type="string"></arg>
</type> </type>
<locale name="en"> <locale name="en">
<nr section="none"> <nr section="none">
<text>"$unit($unit) in $region($region): '$command' - $unit($unit) creates $int($amount) $resource($item,$amount)."</text> <text>"$unit($unit) in $region($region): '$command' - $unit($unit) creates $int($amount) $item."</text>
</nr> </nr>
</locale> </locale>
</message> </message>