mail[Wesnoth-commits] r40073 - /trunk/src/play_controller.cpp


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

Header


Content

Posted by guillaume . melquiond on December 05, 2009 - 15:22:
Author: silene
Date: Sat Dec  5 15:22:15 2009
New Revision: 40073

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40073&view=rev
Log:
Added check for ending level in 'start' event. (Fix for bug #14833.)

Modified:
    trunk/src/play_controller.cpp

Modified: trunk/src/play_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.cpp?rev=40073&r1=40072&r2=40073&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Sat Dec  5 15:22:15 2009
@@ -429,6 +429,7 @@
 void play_controller::fire_start(bool execute){
        if(execute) {
                game_events::fire("start");
+               check_end_level();
                // start event may modify start turn with WML, reflect any 
changes.
                start_turn_ = turn();
                gamestate_.set_variable("turn_number", 
str_cast<size_t>(start_turn_));




Related Messages


Powered by MHonArc, Updated Sat Dec 05 16:20:07 2009