[Wesnoth-commits] r10179 - in /trunk/src: game.cpp playcampaign.cpp (February 18, 2006 - 06:01)

Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Headers

 

Author: darthfool
Date: Sat Feb 18 06:00:52 2006
New Revision: 10179

URL: http://svn.gna.org/viewcvs/wesnoth?rev=10179&view=rev
Log:
added a save at campaign start

Modified:
    trunk/src/game.cpp
    trunk/src/playcampaign.cpp

Modified: trunk/src/game.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=10179&r1=10178&r2=10179&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat Feb 18 06:00:52 2006
@@ -1474,7 +1474,6 @@
 		// change this if MP campaigns are implemented
 		if(result == VICTORY && (state_.campaign_type.empty() || state_.campaign_type != "multiplayer")) {
 			the_end(disp());
-			printf("got here...%s[[[\n",state_.campaign.c_str());
 			about::show_about(disp(),state_.campaign);
 		}
 	} catch(game::load_game_exception& e) {

Modified: trunk/src/playcampaign.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/playcampaign.cpp?rev=10179&r1=10178&r2=10179&view=diff
==============================================================================
--- trunk/src/playcampaign.cpp (original)
+++ trunk/src/playcampaign.cpp Sat Feb 18 06:00:52 2006
@@ -148,6 +148,8 @@
 			LOG_G << "loading scenario: '" << state.scenario << "'\n";
 			scenario = game_config.find_child(type,"id",state.scenario);
 			LOG_G << "scenario found: " << (scenario != NULL ? "yes" : "no") << "\n";
+			config snapshot;
+			recorder.save_game("Campaign Start", snapshot, state.starting_pos);
 		}
 	} else {
 		LOG_G << "loading snapshot...\n";



Related Mails




Powered by MHonArc, Updated Sat Feb 18 16:40:26 2006