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:
Ali El Gariani 2009-11-28 02:29:54 +00:00
parent 25dd6878a4
commit e3b6aafc6e

View file

@ -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();