Remove bad code. This fixes bug #11451.

This commit is contained in:
Eric S. Raymond 2008-04-08 02:55:21 +00:00
parent a00f282be9
commit a8853d4a63

View file

@ -1264,15 +1264,6 @@ void unit::read(const config& cfg, bool use_traits, game_state* state)
type_ = "";
advance_to(&uti->second.get_gender_unit_type(gender_), use_traits, state);
attacks_left_ = max_attacks_;
if(cfg["moves"]=="") {
movement_ = max_movement_;
}
if(movement_ < 0) {
attacks_left_ = 0;
movement_ = 0;
}
type_ = cfg_["type"];
if(cfg["race"] != "") {
const race_map::const_iterator race_it = unit_type_data::types().races().find(cfg["race"]);