Rover: made a bit test clearer

This commit is contained in:
Andrew Tridgell 2013-04-24 08:32:01 +10:00
parent c612b4ad73
commit f50fe7a77a

View File

@ -72,7 +72,7 @@ static void set_cmd_with_index(struct Location temp, int i)
// Set altitude options bitmask
// XXX What is this trying to do?
if (temp.options & MASK_OPTIONS_RELATIVE_ALT && i != 0){
if ((temp.options & MASK_OPTIONS_RELATIVE_ALT) && i != 0){
temp.options = MASK_OPTIONS_RELATIVE_ALT;
} else {
temp.options = 0;