mail[Wesnoth-commits] r28751 - /trunk/src/playsingle_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on August 19, 2008 - 07:43:
Author: esr
Date: Tue Aug 19 07:10:51 2008
New Revision: 28751

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28751&view=rev
Log:
Implement the cosmetic changes suggested in bug #11607.

Modified:
    trunk/src/playsingle_controller.cpp

Modified: trunk/src/playsingle_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playsingle_controller.cpp?rev=28751&r1=28750&r2=28751&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Tue Aug 19 07:10:51 2008
@@ -180,17 +180,21 @@
        report << _("Remaining gold: ")
                   << remaining_gold << "\n";
        if(end_level.gold_bonus) {
-               report << _("Early finish bonus: ")
-                          << finishing_bonus_per_turn
-                          << " " << _("per turn") << "\n"
-                          << font::BOLD_TEXT << _("Turns finished early: ")
-                          << turns_left << "\n"
-                          << _("Bonus: ")
-                          << finishing_bonus << "\n"
-                          << _("Gold: ")
-                          << (remaining_gold + finishing_bonus);
-       }
-       report << '\n' << _("Carry over percentage: ") << 
end_level.carryover_percentage;
+               if (turns_left > -1) {
+                       report << _("Early finish bonus: ")
+                                  << finishing_bonus_per_turn
+                                  << " " << _("per turn") << "\n"
+                                  << font::BOLD_TEXT << _("Turns finished 
early: ")
+                                  << turns_left << "\n"
+                                  << _("Bonus: ")
+                                  << finishing_bonus << "\n";
+               }
+               report << _("Gold: ")
+                      << (remaining_gold + finishing_bonus);
+       }
+       if (remaining_gold > 0) {
+               report << '\n' << _("Carry over percentage: ") << 
end_level.carryover_percentage;
+       }
        if(end_level.carryover_add) {
                report << '\n' << font::BOLD_TEXT << _("Bonus Gold: ") << 
player_gold;
        } else {




Related Messages


Powered by MHonArc, Updated Tue Aug 19 08:01:47 2008