CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/01/25 03:48:46
Modified files:
src : playlevel.cpp
Log message:
fixed bug where in campaigns at the end of a scenario remaining gold
could be shown for AI opponents
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.170&tr2=1.171&r1=text&r2=text
Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.170 wesnoth/src/playlevel.cpp:1.171
--- wesnoth/src/playlevel.cpp:1.170 Sat Jan 22 19:59:59 2005
+++ wesnoth/src/playlevel.cpp Tue Jan 25 03:48:46 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.170 2005/01/22 19:59:59 silene Exp $ */
+/* $Id: playlevel.cpp,v 1.171 2005/01/25 03:48:46 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -770,7 +770,11 @@
std::stringstream report;
- for(std::vector<team>::iterator i=teams.begin();
i!=teams.end(); ++i) {
+ for(std::vector<team>::iterator i=teams.begin();
i!=teams.end(); ++i) {
+ if(i->is_human() == false) {
+ continue;
+ }
+
player_info
*player=state_of_game.get_player(i->save_id());
const int remaining_gold = i->gold();