Remove redundant bad code
(changed gender when already used by other parts, inconsistent with other random_gender use, random aspect making it random/OOS-bug-risky etc.) Note I only managed to trigger it with silly input (using gender= + random_gender= keys)
This commit is contained in:
parent
25dd6878a4
commit
e3b6aafc6e
1 changed files with 0 additions and 5 deletions
|
@ -647,11 +647,6 @@ void unit::advance_to(const unit_type* t, bool use_traits, game_state* state)
|
|||
|
||||
bool do_heal = false; // Track whether unit should get fully healed.
|
||||
|
||||
if(utils::string_bool(cfg_["random_gender"], false)) {
|
||||
generate_gender(*t, true);
|
||||
cfg_["gender"] = gender_string(gender_);
|
||||
}
|
||||
|
||||
if(type_id()!=t->id()) {
|
||||
do_heal = true; // Can't heal until after mods applied.
|
||||
type_ = t->id();
|
||||
|
|
Loading…
Add table
Reference in a new issue