ng::configure_engine: enable setting of side_cfg_
This commit is contained in:
parent
e31615b687
commit
168cc67e04
2 changed files with 8 additions and 1 deletions
|
@ -42,6 +42,11 @@ configure_engine::configure_engine(saved_game& state) :
|
|||
}
|
||||
}
|
||||
|
||||
void configure_engine::update_side_cfg()
|
||||
{
|
||||
side_cfg_ = state_.get_starting_pos().child_or_empty("side");
|
||||
}
|
||||
|
||||
void configure_engine::set_default_values() {
|
||||
set_use_map_settings(use_map_settings_default());
|
||||
set_game_name(game_name_default());
|
||||
|
|
|
@ -111,6 +111,8 @@ public:
|
|||
|
||||
const std::vector<std::string>& entry_point_titles() const;
|
||||
void write_parameters();
|
||||
|
||||
void update_side_cfg();
|
||||
private:
|
||||
saved_game& state_;
|
||||
mp_game_settings& parameters_;
|
||||
|
@ -121,7 +123,7 @@ private:
|
|||
* This might change in the future.
|
||||
* NOTE when 'load game' is selected there are no sides.
|
||||
*/
|
||||
const config &side_cfg_;
|
||||
config side_cfg_;
|
||||
|
||||
std::vector<const config*> entry_points_;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue