mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix marking of non-marked waypoints.
This commit is contained in:
parent
cf7c7d853f
commit
a6a44ef433
@ -48,14 +48,16 @@ const WaypointMarkers = (props: FlightPlanProps) => {
|
||||
|
||||
var markers: ReactElement[] = [];
|
||||
props.flight.waypoints?.forEach((p, idx) => {
|
||||
markers.push(
|
||||
<WaypointMarker
|
||||
key={idx}
|
||||
number={idx}
|
||||
waypoint={p}
|
||||
flight={props.flight}
|
||||
/>
|
||||
);
|
||||
if (p.should_mark) {
|
||||
markers.push(
|
||||
<WaypointMarker
|
||||
key={idx}
|
||||
number={idx}
|
||||
waypoint={p}
|
||||
flight={props.flight}
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
return <>{markers}</>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user