mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 15:18:04 +00:00
Applied patch #466 from ravanrooke@yahoo.de
allowing island_size parameter in WML config files
This commit is contained in:
parent
493c7cef61
commit
89ece70cb5
@ -69,6 +69,10 @@ default_map_generator::default_map_generator(const config* cfg)
|
||||
const int nplayers = ::atoi((*cfg)["players"].c_str());
|
||||
if(nplayers > 0)
|
||||
nplayers_ = nplayers;
|
||||
|
||||
const int island_size = ::atoi((*cfg)["island_size"].c_str());
|
||||
if(island_size > 0)
|
||||
island_size_ = island_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user