mail[Wesnoth-commits] r24701 - /trunk/src/menu_events.cpp


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

Header


Content

Posted by esr on March 16, 2008 - 12:20:
Author: esr
Date: Sun Mar 16 12:16:30 2008
New Revision: 24701

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24701&view=rev
Log:
Implement feature request in bug #11265.

Modified:
    trunk/src/menu_events.cpp

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=24701&r1=24700&r2=24701&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Sun Mar 16 12:16:30 2008
@@ -294,7 +294,10 @@
                        //If the unit is of level > 1, or is close to 
advancing,
                        //we warn the player about it
                        std::stringstream message;
-                       if(u.level() > 1) {
+                       if (u.upkeep() == 0) {
+                               message << _("My lord, this unit is loyal and 
requires no upkeep! ") << (u.gender() == unit_race::MALE ? _("Do you really 
want to dismiss him?")
+                                               : _("Do you really want to 
dismiss her?"));
+                       } else if(u.level() > 1) {
                                message << _("My lord, this unit is an 
experienced one, having advanced levels! ") << (u.gender() == unit_race::MALE 
? _("Do you really want to dismiss him?")
                                                : _("Do you really want to 
dismiss her?"));
 




Related Messages


Powered by MHonArc, Updated Sun Mar 16 12:21:33 2008