Skip to content

Commit

Permalink
#260: Fixed air unit movement
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Jan 29, 2017
1 parent 320bcff commit c769bf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ pub fn is_exact_pos_free(
}
match unit.pos.slot_id {
SlotId::WholeTile | SlotId::TwoTiles(_) => {
return false;
if !unit_type.is_air {
return false;
}
}
_ => {}
}
Expand Down

0 comments on commit c769bf9

Please sign in to comment.