forked from github/server
remove duplication, fix a stray blank space in the NR.
This commit is contained in:
parent
816243d2d7
commit
398579c293
|
@ -914,7 +914,7 @@
|
|||
<arg name="transparent" type="int"/>
|
||||
<arg name="object" type="string"/>
|
||||
</type>
|
||||
<text locale="de">"$if($transparent," befindet sich"," versperrt") ${object} $if($transparent,""," die Sicht")."</text>
|
||||
<text locale="de">"$if($transparent," befindet sich"," versperrt") ${object}$if($transparent,""," die Sicht")."</text>
|
||||
<text locale="en">"$if($transparent," there is"," sight is blocked by ") ${object}."</text>
|
||||
</message>
|
||||
<message name="nr_building_besieged" section="nr">
|
||||
|
|
18
src/report.c
18
src/report.c
|
@ -515,31 +515,27 @@ nr_curses_i(stream *out, int indent, const faction *viewer, objtype_t typ, const
|
|||
{
|
||||
for (; a; a = a->next) {
|
||||
char buf[4096];
|
||||
message *msg;
|
||||
message *msg = 0;
|
||||
|
||||
if (fval(a->type, ATF_CURSE)) {
|
||||
curse *c = (curse *)a->data.v;
|
||||
|
||||
self = curse_cansee(c, viewer, typ, obj, self);
|
||||
msg = msg_curse(c, obj, typ, self);
|
||||
|
||||
if (msg) {
|
||||
newline(out);
|
||||
nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
|
||||
paragraph(out, buf, indent, 2, 0);
|
||||
msg_release(msg);
|
||||
}
|
||||
}
|
||||
else if (a->type == &at_effect && self) {
|
||||
effect_data *data = (effect_data *)a->data.v;
|
||||
if (data->value > 0) {
|
||||
msg = msg_message("nr_potion_effect", "potion left",
|
||||
data->type->itype->rtype, data->value);
|
||||
nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
|
||||
paragraph(out, buf, indent, 2, 0);
|
||||
msg_release(msg);
|
||||
}
|
||||
}
|
||||
if (msg) {
|
||||
newline(out);
|
||||
nr_render(msg, viewer->locale, buf, sizeof(buf), viewer);
|
||||
paragraph(out, buf, indent, 2, 0);
|
||||
msg_release(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue