Skip to content

Commit

Permalink
validate that an update is required
Browse files Browse the repository at this point in the history
  • Loading branch information
svengcz committed Apr 23, 2023
1 parent d7b5d55 commit 605c501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/Airport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ Airport::SendType Airport::deltaEuroscopeToBackend(const std::array<types::Fligh
if (lastDelta == deltaCount)
root.removeMember("clearance");

return Airport::SendType::Patch;
return deltaCount != 0 ? Airport::SendType::Patch : Airport::SendType::None;
}
}

Expand Down

0 comments on commit 605c501

Please sign in to comment.