[Wesnoth-cvs-commits] wesnoth/src team.cpp (February 03, 2005 - 21:22)

 

CVSROOT:	/cvsroot/wesnoth
Module name:	wesnoth
Branch: 	
Changes by:	Guillaume Melquiond <silene@xxxxxxxxxxxxxxxx>	05/02/03 19:48:01

Modified files:
	src            : team.cpp 

Log message:
	Fix dumb mistake with persistence: any team was probably persistent because of it.

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

Patches:
Index: wesnoth/src/team.cpp
diff -u wesnoth/src/team.cpp:1.77 wesnoth/src/team.cpp:1.78
--- wesnoth/src/team.cpp:1.77	Sat Jan 22 10:47:17 2005
+++ wesnoth/src/team.cpp	Thu Feb  3 19:48:00 2005
@@ -1,4 +1,4 @@
-/* $Id: team.cpp,v 1.77 2005/01/22 10:47:17 silene Exp $ */
+/* $Id: team.cpp,v 1.78 2005/02/03 19:48:00 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <davidnwhite@xxxxxxxxxxxxxxx>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -110,7 +110,6 @@
 	else
 		controller = AI;
 
-	bool persistent;
 	std::string persist = cfg["persistent"];
 	if (persist.empty()) persistent = controller == HUMAN;
 	else persistent = persist == "1";



You are on the gna.org mail server.

Generated by mhonarc, Tue Sep 20 16:46:58 2005