CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     ott <[EMAIL PROTECTED]> 05/05/12 20:42:16

Modified files:
        src            : playlevel.cpp 

Log message:
        mention 100 gold minimum next scenario (#12987)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.205&tr2=1.206&r1=text&r2=text

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.205 wesnoth/src/playlevel.cpp:1.206
--- wesnoth/src/playlevel.cpp:1.205     Thu May  5 22:24:40 2005
+++ wesnoth/src/playlevel.cpp   Thu May 12 20:42:16 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.205 2005/05/05 22:24:40 ott Exp $ */
+/* $Id: playlevel.cpp,v 1.206 2005/05/12 20:42:16 ott Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -851,8 +851,13 @@
                                        }
 
                                        // xgettext:no-c-format
-                                       report << "\n" << _("80% of gold is 
retained for the next scenario") << "\n"
-                                              << _("Retained Gold: ") << 
player->gold;
+                                       // 125 == 100 / 80%
+                                       if (player->gold >= 125) {
+                                               report << "\n" << _("80% of 
gold is retained for the next scenario") << "\n"
+                                                       << _("Retained Gold: ") 
<< player->gold;
+                                       } else {
+                                               report << "\n" << _("100 gold 
will be available for the next scenario") << "\n" << _("Retained Gold: ") << 
player->gold;
+                                       }
                                }
                        }
 


Reply via email to