[Wesnoth-commits] r10117 - in /trunk/src: menu_events.cpp playturn.cpp (February 14, 2006 - 21:14)

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

 

Author: xan
Date: Tue Feb 14 21:13:59 2006
New Revision: 10117

URL: http://svn.gna.org/viewcvs/wesnoth?rev=10117&view=rev
Log:
Show gold in status table unless team is enemy and fog is enabled.

Modified:
    trunk/src/menu_events.cpp
    trunk/src/playturn.cpp

Modified: trunk/src/menu_events.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=10117&r1=10116&r2=10117&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Tue Feb 14 21:13:59 2006
@@ -261,7 +261,7 @@
 				str << ' ' << COLUMN_SEPARATOR << "\033[3" << lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
 			}
 
-			if(enemy) {
+			if(enemy && viewing_team.uses_fog()) {
 				str << ' ' << COLUMN_SEPARATOR;
 			} else {
 				str << data.gold << COLUMN_SEPARATOR;

Modified: trunk/src/playturn.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/playturn.cpp?rev=10117&r1=10116&r2=10117&view=diff
==============================================================================
--- trunk/src/playturn.cpp (original)
+++ trunk/src/playturn.cpp Tue Feb 14 21:13:59 2006
@@ -1888,7 +1888,7 @@
 			str << ' ' << COLUMN_SEPARATOR << "\033[3" << lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
 		}
 
-		if(enemy) {
+		if(enemy && viewing_team.uses_fog()) {
 			str << ' ' << COLUMN_SEPARATOR;
 		} else {
 			str << data.gold << COLUMN_SEPARATOR;



Related Mails




Powered by MHonArc, Updated Tue Feb 14 21:20:20 2006