Skip to content

Commit

Permalink
FlightData: allow sethomehere on ocean tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jun 27, 2023
1 parent 0e83990 commit 5448bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GCSViews/FlightData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4655,7 +4655,7 @@ private async void setHomeHereToolStripMenuItem_Click(object sender, EventArgs e
{
var alt = srtm.getAltitude(MouseDownStart.Lat, MouseDownStart.Lng);

if (alt.currenttype != srtm.tiletype.valid)
if (alt.currenttype != srtm.tiletype.valid && alt.currenttype != srtm.tiletype.ocean)
{
CustomMessageBox.Show("No SRTM data for this area", Strings.ERROR);
return;
Expand Down

0 comments on commit 5448bfe

Please sign in to comment.