Made unit to hideable by others units (bug #10877)

This commit is contained in:
Pauli Nieminen 2008-01-26 13:54:34 +00:00
parent a9e987dd55
commit 9bbc46e150
2 changed files with 3 additions and 3 deletions

View file

@ -40,6 +40,7 @@ Version 1.3.14+svn:
* miscellaneous and bug fixes:
* Fixed turn timer and end_turn commands order (bug #10849)
* Fixed boost test compile with 1.34.1
* Made unit to hideable by others units (bug #10877)
* Make wesnoth work properly again if the datadir contains ../
* Fixed some type of addon not being uninstallable (bug #10788)
* converted NO_MAP_DATA to new map format

View file

@ -694,9 +694,8 @@ void unit::new_turn()
end_turn_ = false;
movement_ = total_movement();
attacks_left_ = max_attacks_;
if(has_ability_type("hides")) {
set_state("hides","yes");
}
set_state("hides","yes");
if(incapacitated()) {
set_attacks(0);
}