Author: silene
Date: Sun Mar 22 19:59:06 2009
New Revision: 34039
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34039&view=rev
Log:
Added a 'preload' event that is run before 'prestart' or when loading savegame.
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=34039&r1=34038&r2=34039&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Sun Mar 22 19:59:06 2009
@@ -359,6 +359,9 @@
void play_controller::fire_prestart(bool execute){
+ // Run initialization scripts, even if loading from a snapshot.
+ game_events::fire("preload");
+
// pre-start events must be executed before any GUI operation,
// as those may cause the display to be refreshed.
if (execute){
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits