Remove bad code. This fixes bug #11451.
This commit is contained in:
parent
a00f282be9
commit
a8853d4a63
1 changed files with 0 additions and 9 deletions
|
@ -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"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue