Skip to content

Commit

Permalink
Support "C" runways.
Browse files Browse the repository at this point in the history
Cairo has an L, R, and C runway.
  • Loading branch information
DanAlbert committed Jun 12, 2023
1 parent 55d15b9 commit c7cefce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcs/terrain/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RunwayApproach:

@staticmethod
def from_lua(name: str, beacons: Dict[str, List[RunwayBeacon]]) -> RunwayApproach:
return RunwayApproach(name, int(name.rstrip("LR")) * 10, beacons.get(name, []))
return RunwayApproach(name, int(name.rstrip("LCR")) * 10, beacons.get(name, []))


@dataclass(frozen=True)
Expand Down

3 comments on commit c7cefce

@magwo
Copy link
Contributor

@magwo magwo commented on c7cefce Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, what caused the addition of this? Not familiar with any airports in DCS that have three runways, or a center runway.

@DanAlbert
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, what caused the addition of this? Not familiar with any airports in DCS that have three runways, or a center runway.

See the commit message. "Cairo has an L, R, and C runway."

@magwo
Copy link
Contributor

@magwo magwo commented on c7cefce Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, totally missed that :D

Please sign in to comment.