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

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

[Wesnoth-cvs-commits] wesnoth/src playcampaign.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src playcampaign.cpp
Date: Mon, 30 May 2005 02:32:50 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/05/30 06:32:49

Modified files:
        src            : playcampaign.cpp 

Log message:
        made the game not display 'campaign ending sequence' at the end of a mp 
scenario (CVS internal)

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

Patches:
Index: wesnoth/src/playcampaign.cpp
diff -u wesnoth/src/playcampaign.cpp:1.4 wesnoth/src/playcampaign.cpp:1.5
--- wesnoth/src/playcampaign.cpp:1.4    Sat May 28 23:02:21 2005
+++ wesnoth/src/playcampaign.cpp        Mon May 30 06:32:49 2005
@@ -1,4 +1,4 @@
-/* $Id: playcampaign.cpp,v 1.4 2005/05/28 23:02:21 Sirp Exp $ */
+/* $Id: playcampaign.cpp,v 1.5 2005/05/30 06:32:49 Sirp Exp $ */
 /*
    Copyright (C) 2003-2005 by David White <address@hidden>
    Copyright (C) 2005 by Philippe Plantier <address@hidden>
@@ -207,9 +207,11 @@
                                starting_pos = (*cfg.child("next_scenario"));
                                scenario = &starting_pos;
                                state = read_game(units_data, scenario);
-                       } else  {
+                       } else if(scenario->child("end_scenarios")) {
                                scenario = NULL;
                                state.scenario = "null";
+                       } else {
+                               return QUIT;
                        }
 
                } else {




reply via email to

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