From 070a207707442bcc0e1d1eb17ad540c767021fcc Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Mon, 8 Sep 2008 20:29:08 +0000 Subject: [PATCH] Fix broken 2008-09-08T19:35:21Z!shadowm@wesnoth.org --- src/actions.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/actions.cpp b/src/actions.cpp index 497bc2b35df..bed5cc6845c 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1044,20 +1044,20 @@ attack::attack(game_display& gui, const gamemap& map, if(hits) { if (a_stats_->poisons && !utils::string_bool(d_->second.get_state("poisoned"))) { - float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^poisoned") : _("poisoned")) + - "\n"; + float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^poisoned") : _("poisoned")); + float_text += '\n'; } if(a_stats_->slows && !utils::string_bool(d_->second.get_state("slowed"))) { - float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^slowed") : _("slowed")) + - "\n"; + float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^slowed") : _("slowed")); + float_text += '\n'; } // If the defender is turned to stone, the fight stops immediately static const std::string stone_string("stone"); if (a_stats_->stones) { - float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^stone") : _("stone")) + - "\n"; + float_text += (d_->second.gender() == unit_race::FEMALE ? _("female^stone") : _("stone")); + float_text += '\n'; } } @@ -1315,20 +1315,20 @@ attack::attack(game_display& gui, const gamemap& map, if(hits) { if (d_stats_->poisons && !utils::string_bool(a_->second.get_state("poisoned"))) { - float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^poisoned") : _("poisoned")) + - "\n"; + float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^poisoned") : _("poisoned")); + float_text += '\n'; } if(d_stats_->slows && !utils::string_bool(a_->second.get_state("slowed"))) { - float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^slowed") : _("slowed")) + - "\n"; + float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^slowed") : _("slowed")); + float_text += '\n'; } // If the defender is turned to stone, the fight stops immediately static const std::string stone_string("stone"); if (d_stats_->stones) { - float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^stone") : _("stone")) + - "\n"; + float_text += (a_->second.gender() == unit_race::FEMALE ? _("female^stone") : _("stone")); + float_text += '\n'; } } unit_display::unit_attack(defender_,attacker_,