CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
    Copyright (C) 2005 by Philippe Plantier <[EMAIL PROTECTED]>
@@ -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