From 3688636736669e6e61bf38d93c9c3f8ebd5947f2 Mon Sep 17 00:00:00 2001
From: Randy Mackay <rmackay9@yahoo.com>
Date: Thu, 28 Apr 2016 15:33:32 +0900
Subject: [PATCH] Copter: RTL ignores terrain during terrain failsafe

---
 ArduCopter/control_rtl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ArduCopter/control_rtl.cpp b/ArduCopter/control_rtl.cpp
index 7f4f64d944..c1b1e43346 100644
--- a/ArduCopter/control_rtl.cpp
+++ b/ArduCopter/control_rtl.cpp
@@ -13,7 +13,7 @@
 bool Copter::rtl_init(bool ignore_checks)
 {
     if (position_ok() || ignore_checks) {
-        rtl_build_path(true);
+        rtl_build_path(!failsafe.terrain);
         rtl_climb_start();
         return true;
     }else{