kleine fixes zur message-änderung

This commit is contained in:
Enno Rehling 2004-04-19 23:27:27 +00:00
parent b802320b60
commit d81ce147ca
2 changed files with 6 additions and 4 deletions

View File

@ -1718,6 +1718,7 @@ getreload(troop at)
return at.fighter->person[at.index].reload; return at.fighter->person[at.index].reload;
} }
#ifdef SMALL_BATTLE_MESSAGES
static char * static char *
attack_message(const troop at, const troop dt, const weapon * wp, int dist) attack_message(const troop at, const troop dt, const weapon * wp, int dist)
{ {
@ -1756,6 +1757,7 @@ attack_message(const troop at, const troop dt, const weapon * wp, int dist)
return smallbuf; return smallbuf;
} }
#endif
int int
hits(troop at, troop dt, weapon * awp) hits(troop at, troop dt, weapon * awp)
@ -2731,9 +2733,9 @@ print_stats(battle * b)
unit *u = tf->unit; unit *u = tf->unit;
message * m = NULL; message * m = NULL;
if (!fval(tf, FIG_ATTACKED)) { if (!fval(tf, FIG_ATTACKED)) {
msg_message("battle::tactics_lost", "unit", u); m = msg_message("battle::tactics_lost", "unit", u);
} else { } else {
msg_message("battle::tactics_won", "unit", u); m = msg_message("battle::tactics_won", "unit", u);
} }
message_all(b, m); message_all(b, m);
msg_release(m); msg_release(m);

View File

@ -5721,13 +5721,13 @@
<text locale="de">"$unit($unit) versucht $spell($spell) zu zaubern, doch der Zauber schlägt fehl!"</text> <text locale="de">"$unit($unit) versucht $spell($spell) zu zaubern, doch der Zauber schlägt fehl!"</text>
<text locale="en">"$unit($unit) tries to cast $spell($spell), but the spell fails!"</text> <text locale="en">"$unit($unit) tries to cast $spell($spell), but the spell fails!"</text>
</message> </message>
<message name="battle::row_header" section="battle"> <message name="battle::aborted" section="battle">
<type> <type>
</type> </type>
<text locale="de">"Der Kampf wurde abgebrochen, da alle Verteidiger flohen."</text> <text locale="de">"Der Kampf wurde abgebrochen, da alle Verteidiger flohen."</text>
<text locale="en">"The battle was aborted because all enemies escaped."</text> <text locale="en">"The battle was aborted because all enemies escaped."</text>
</message> </message>
<message name="battle::aborted" section="battle"> <message name="battle::row_header" section="battle">
<type> <type>
<arg name="row" type="int"/> <arg name="row" type="int"/>
</type> </type>