mail[Wesnoth-commits] r13778 - /trunk/src/multiplayer_wait.cpp


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

Header


Content

Posted by DannyDaemonic on October 03, 2006 - 03:56:
Author: dirus
Date: Tue Oct  3 03:56:14 2006
New Revision: 13778

URL: http://svn.gna.org/viewcvs/wesnoth?rev=13778&view=rev
Log:
Hide players gold when loading MP games (bug #5239).

Modified:
    trunk/src/multiplayer_wait.cpp

Modified: trunk/src/multiplayer_wait.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_wait.cpp?rev=13778&r1=13777&r2=13778&view=diff
==============================================================================
--- trunk/src/multiplayer_wait.cpp (original)
+++ trunk/src/multiplayer_wait.cpp Tue Oct  3 03:56:14 2006
@@ -426,7 +426,10 @@
                // Mark parentheses translatable for languages like Japanese
                if(!leader_name.empty())
                        str << _("(") << leader_name << _(")");
-               str << COLUMN_SEPARATOR << sd["gold"] << ' ' << 
sgettext("unit^Gold") << COLUMN_SEPARATOR;
+               str << COLUMN_SEPARATOR;
+               // Don't show gold for saved games
+               if(sd["save_id"].empty())
+                       str << sd["gold"] << ' ' << sgettext("unit^Gold") << 
COLUMN_SEPARATOR;
 
                int income_amt = lexical_cast_default<int>(sd["income"], 0);
                if(income_amt != 0){




Related Messages


Powered by MHonArc, Updated Tue Oct 03 04:40:09 2006