Load addons based on game_config::no_addons instead of command line.

This is to make sure that we can change the loading of addons at
runtime.

Can be used to provide a fallback solution.
This commit is contained in:
Fabian Müller 2014-11-06 07:10:48 +01:00
parent 21484aa5bc
commit 42c9475173

View File

@ -138,7 +138,7 @@ void game_config_manager::load_game_config(FORCE_RELOAD_CONFIG force_reload,
config core_terrain_rules;
core_terrain_rules.splice_children(game_config_, "terrain_graphics");
if (!cmdline_opts_.noaddons)
if (!game_config::no_addons)
load_addons_cfg();
// If multiplayer campaign is being loaded, [scenario] tags should