From d81ce147ca8f50ad366dff0ea42d58c7d16c375a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 19 Apr 2004 23:27:27 +0000 Subject: [PATCH] =?UTF-8?q?kleine=20fixes=20zur=20message-=C3=A4nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/battle.c | 6 ++++-- src/res/messages.xml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/common/kernel/battle.c b/src/common/kernel/battle.c index aea620c35..48b7b9a4d 100644 --- a/src/common/kernel/battle.c +++ b/src/common/kernel/battle.c @@ -1718,6 +1718,7 @@ getreload(troop at) return at.fighter->person[at.index].reload; } +#ifdef SMALL_BATTLE_MESSAGES static char * 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; } +#endif int hits(troop at, troop dt, weapon * awp) @@ -2731,9 +2733,9 @@ print_stats(battle * b) unit *u = tf->unit; message * m = NULL; if (!fval(tf, FIG_ATTACKED)) { - msg_message("battle::tactics_lost", "unit", u); + m = msg_message("battle::tactics_lost", "unit", u); } else { - msg_message("battle::tactics_won", "unit", u); + m = msg_message("battle::tactics_won", "unit", u); } message_all(b, m); msg_release(m); diff --git a/src/res/messages.xml b/src/res/messages.xml index a64112e82..a31c1c04a 100644 --- a/src/res/messages.xml +++ b/src/res/messages.xml @@ -5721,13 +5721,13 @@ "$unit($unit) versucht $spell($spell) zu zaubern, doch der Zauber schlägt fehl!" "$unit($unit) tries to cast $spell($spell), but the spell fails!" - + "Der Kampf wurde abgebrochen, da alle Verteidiger flohen." "The battle was aborted because all enemies escaped." - +