forked from github/server
"0 Wirkungen Siebenmeilentee" Ausgabe in CR und NR respektiert "leere" attribute. Issue: 960
This commit is contained in:
parent
88ecdd173a
commit
02b012ed47
|
@ -266,6 +266,7 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
|||
}
|
||||
} else if (a->type==&at_effect && self) {
|
||||
effect_data * data = (effect_data *)a->data.v;
|
||||
if (data->value>0) {
|
||||
const char * key = resourcename(data->type->itype->rtype, 0);
|
||||
if (!header) {
|
||||
header = 1;
|
||||
|
@ -273,6 +274,7 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
|||
}
|
||||
fprintf(F, "\"%d %s\"\n", data->value, add_translation(key, locale_string(default_locale, key)));
|
||||
}
|
||||
}
|
||||
a = a->next;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -511,6 +511,7 @@ print_curses(FILE *F, const faction *viewer, const void * obj, typ_t typ, int in
|
|||
}
|
||||
} else if (a->type==&at_effect && self) {
|
||||
effect_data * data = (effect_data *)a->data.v;
|
||||
if (data->value>0) {
|
||||
sprintf(buf, "Auf der Einheit lieg%s %d Wirkung%s %s.",
|
||||
(data->value==1 ? "t" : "en"),
|
||||
data->value,
|
||||
|
@ -521,6 +522,7 @@ print_curses(FILE *F, const faction *viewer, const void * obj, typ_t typ, int in
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
rps_nowrap(FILE * F, const char *s)
|
||||
|
|
Loading…
Reference in New Issue