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)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits