mail[Wesnoth-commits] r28501 - /trunk/src/mapgen_dialog.cpp


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

Header


Content

Posted by koraq on August 12, 2008 - 20:58:
Author: mordante
Date: Tue Aug 12 20:32:13 2008
New Revision: 28501

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28501&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/mapgen_dialog.cpp

Modified: trunk/src/mapgen_dialog.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mapgen_dialog.cpp?rev=28501&r1=28500&r2=28501&view=diff
==============================================================================
--- trunk/src/mapgen_dialog.cpp (original)
+++ trunk/src/mapgen_dialog.cpp Tue Aug 12 20:32:13 2008
@@ -38,12 +38,22 @@
        const size_t max_coastal = 5;
 }
 
-default_map_generator::default_map_generator(const config* cfg)
-: width_(40), height_(40), island_size_(0), iterations_(1000), 
hill_size_(10), max_lakes_(20),
-  nvillages_(25), castle_size_(9), nplayers_(2), link_castles_(true)
+default_map_generator::default_map_generator(const config* cfg) :
+       default_width_(40),
+       default_height_(40),
+       width_(40), 
+       height_(40), 
+       island_size_(0), 
+       iterations_(1000), 
+       hill_size_(10), 
+       max_lakes_(20), 
+       nvillages_(25), 
+       castle_size_(9), 
+       nplayers_(2), 
+       link_castles_(true),
+       cfg_(cfg ? *cfg : config())
 {
        if(cfg != NULL) {
-               cfg_ = *cfg;
 
                const int width = ::atoi((*cfg)["map_width"].c_str());
                if(width > 0)




Related Messages


Powered by MHonArc, Updated Tue Aug 12 21:02:00 2008