Diff of /math.c [0c73d8] .. [a16609] Maximize Restore

  Switch to side-by-side view

--- a/math.c
+++ b/math.c
@@ -2569,7 +2569,12 @@
 
   rho = sqrt( x_dest*x_dest + y_dest*y_dest )/ SCALE;
 
-  
+  if(fabs(rho)>THOBY_K1_PARM)
+  {
+    *x_src=0;
+    *y_src=0;
+    return 0;
+  };
   theta = asin( rho/THOBY_K1_PARM) / THOBY_K2_PARM;
   phi   = atan2( y_dest , x_dest );