mail[Wesnoth-commits] r44661 - /trunk/src/game.cpp


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

Header


Content

Posted by alinktomine on July 25, 2010 - 03:24:
Author: alink
Date: Sun Jul 25 03:24:51 2010
New Revision: 44661

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44661&view=rev
Log:
Halve starting time of test scenario
by skipping the first cache reading/building done for the unused main menu.

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=44661&r1=44660&r2=44661&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sun Jul 25 03:24:51 2010
@@ -589,6 +589,9 @@
        if (multiplayer_mode_)
                cache_.add_define("MULTIPLAYER");
 
+       if (test_mode_)
+               cache_.add_define("TEST");
+
        load_game_cfg(force);
 
        const config &cfg = game_config().child("game_config");
@@ -1154,8 +1157,8 @@
                        if (jump_to_campaign_.difficulty_
                                        > 
static_cast<int>(difficulties.size()))
                        {
-                               std::cerr << "incorrect difficulty number: [" 
<< 
-                                       jump_to_campaign_.difficulty_ << "]. 
maximum is [" << 
+                               std::cerr << "incorrect difficulty number: [" 
<<
+                                       jump_to_campaign_.difficulty_ << "]. 
maximum is [" <<
                                        difficulties.size() << "].\n";
                                return false;
                        }




Related Messages


Powered by MHonArc, Updated Sun Jul 25 03:40:13 2010