Try to init town.difficulty: set it by default to scenario.difficulty
This commit is contained in:
@@ -264,7 +264,10 @@ bool load_party_v1(fs::path file_to_load, cUniverse& real_univ, bool town_restor
|
||||
}
|
||||
}
|
||||
}
|
||||
else univ.party.town_num = 200;
|
||||
else {
|
||||
univ.party.town_num = 200;
|
||||
univ.town.difficulty = univ.scenario.difficulty;
|
||||
}
|
||||
}
|
||||
|
||||
real_univ = std::move(univ);
|
||||
|
@@ -1393,6 +1393,8 @@ void cUniverse::enter_scenario(const std::string& name) {
|
||||
for(auto& m : sector->maps)
|
||||
m.reset();
|
||||
|
||||
// time to init the town's difficulty
|
||||
town.difficulty = scenario.difficulty;
|
||||
party.scen_name = name;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user