wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth ./changelog src/actions.cpp


From: ott
Subject: [Wesnoth-cvs-commits] wesnoth ./changelog src/actions.cpp
Date: Wed, 17 Aug 2005 09:25:58 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     ott <address@hidden>    05/08/17 13:25:58

Modified files:
        .              : changelog 
        src            : actions.cpp 

Log message:
        small code tweak, see patch 4313

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/changelog.diff?tr1=1.858&tr2=1.859&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/actions.cpp.diff?tr1=1.235&tr2=1.236&r1=text&r2=text

Patches:
Index: wesnoth/changelog
diff -u wesnoth/changelog:1.858 wesnoth/changelog:1.859
--- wesnoth/changelog:1.858     Wed Aug 17 11:31:38 2005
+++ wesnoth/changelog   Wed Aug 17 13:25:58 2005
@@ -25,7 +25,7 @@
  * removed tooltip picture (#14134): with #14084 present this cannot be fixed
  * fixed Lich using wrong image (#14139)
  * made checksums work on AMD64
- 
+ * various bug fixes and code cleanups
 
 Version 0.9.5:
  * language and i18n:
Index: wesnoth/src/actions.cpp
diff -u wesnoth/src/actions.cpp:1.235 wesnoth/src/actions.cpp:1.236
--- wesnoth/src/actions.cpp:1.235       Thu Aug 11 20:47:11 2005
+++ wesnoth/src/actions.cpp     Wed Aug 17 13:25:58 2005
@@ -1,4 +1,4 @@
-/* $Id: actions.cpp,v 1.235 2005/08/11 20:47:11 ott Exp $ */
+/* $Id: actions.cpp,v 1.236 2005/08/17 13:25:58 ott Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -96,9 +96,9 @@
        typedef std::map<gamemap::location,unit> units_map;
 
        //find the unit that can recruit
-       units_map::const_iterator u = units.end();
+       units_map::const_iterator u = units.begin();
 
-       for(u = units.begin(); u != units.end(); ++u) {
+       for(; u != units.end(); ++u) {
                if(u->second.can_recruit() && u->second.side() == side) {
                        break;
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]