Skip to content

Commit

Permalink
fix metadata changing overriding flightplan
Browse files Browse the repository at this point in the history
  • Loading branch information
Sequal32 committed Apr 17, 2021
1 parent 2a76c34 commit 5cdd008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ fn main() {
let new_remarks = get_remarks(&aircraft.ac_data);
let metadata_was_updated = new_remarks != tracked.last_remarks;

if should_set_init || metadata_was_updated {
if (should_set_init || metadata_was_updated) && aircraft.fp.is_none() {
write_str(
&mut streams,
&build_init_flightplan_string(
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl AircraftData {
hex: self.hex,
origin: replace_if!(self.origin != "" && !update_space, origin),
destination: replace_if!(self.destination != "" && !update_space, destination),
provider: "Cobborated",
provider: "Combined",
}
}
}
Expand Down

0 comments on commit 5cdd008

Please sign in to comment.