CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <[EMAIL PROTECTED]>  05/07/26 11:36:05

Modified files:
        src            : multiplayer_create.cpp 

Log message:
        make the experience modifier slider reflect the values of the scenario 
if use map settings is enabled.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_create.cpp.diff?tr1=1.28&tr2=1.29&r1=text&r2=text

Patches:
Index: wesnoth/src/multiplayer_create.cpp
diff -u wesnoth/src/multiplayer_create.cpp:1.28 
wesnoth/src/multiplayer_create.cpp:1.29
--- wesnoth/src/multiplayer_create.cpp:1.28     Mon Jul 25 09:56:25 2005
+++ wesnoth/src/multiplayer_create.cpp  Tue Jul 26 11:36:05 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_create.cpp,v 1.28 2005/07/25 09:56:25 j_daniel Exp $ */
+/* $Id: multiplayer_create.cpp,v 1.29 2005/07/26 11:36:05 j_daniel Exp $ */
 /*
    Copyright (C)
    Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -330,6 +330,13 @@
                std::stringstream players;
                players << _("Players: ") << nsides;
                num_players_label_.set_text(players.str());
+
+               if(use_map_settings_.checked()) {
+                       try {
+                               
xp_modifier_slider_.set_value(lexical_cast<int>(parameters_.scenario_data["experience_modifier"]));
+                       } catch(bad_lexical_cast bad_lexical) {
+                       }
+               }
        }
 }
 


Reply via email to