Pressing space really ends turn for a unit (no move, *no attack*),

closes bug 7311
This commit is contained in:
uid67456 2004-01-20 18:54:16 +00:00
parent 8d41e59f68
commit cb6c96b79a

View file

@ -862,12 +862,12 @@ void turn_info::end_unit_turn()
const unit_map::iterator un = units_.find(selected_hex_);
if(un != units_.end() && un->second.side() == team_num_ &&
un->second.movement_left() > 0) {
un->second.movement_left() >= 0) {
std::vector<gamemap::location> steps;
steps.push_back(selected_hex_);
undo_stack_.push_back(undo_action(steps,un->second.movement_left(),-1));
redo_stack_.clear();
un->second.set_movement(0);
un->second.set_movement(-1);
gui_.draw_tile(selected_hex_.x,selected_hex_.y);
gui_.set_paths(NULL);