mail[Wesnoth-commits] r27180 - /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 June 14, 2008 - 23:11:
Author: alink
Date: Sat Jun 14 23:11:04 2008
New Revision: 27180

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27180&view=rev
Log:
When canceling the campaign-difficulty dialog, go back to campaign selection,
instead of titlescreen (assuming that a cancel there follow a bad click)
This also allow to more easily browse difficulties of all campaigns
(example: to find one with a "beginner" level)

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=27180&r1=27179&r2=27180&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat Jun 14 23:11:04 2008
@@ -1018,7 +1018,8 @@
                        _("Select difficulty level:"), gui::OK_CANCEL);
                dlg.set_menu(difficulty_options);
                if(dlg.show() == -1) {
-                       return false;
+                       // canceled difficulty dialog, relaunch the campaign 
selection dialog
+                       return new_campaign();
                }
 
                state_.difficulty = difficulties[dlg.result()];




Related Messages


Powered by MHonArc, Updated Sat Jun 14 23:21:17 2008