Index: trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 327)
+++ trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 336)
@@ -20,7 +20,7 @@
 //
 // $RCSfile: reflector.cxx,v $
-// $Revision: 1.2 $
+// $Revision: 1.3 $
 // $Author: harald $ 
-// $Date: 1999-11-01 11:05:54 $
+// $Date: 2000-01-03 12:41:26 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -1986,8 +1986,8 @@
         // the photon actually hit the mirror!!
 
-        t = t - sqrt( SQR(xm[0] - xcut[0]) +
-                      SQR(xm[1] - xcut[1]) +
-                      SQR(xm[2] - xcut[2]) ) / Speed_of_Light_air_cmns;
-        
+        t = t + ((( xm[2] > 0. ) ? -1.0 : +1.0) *
+                 sqrt( SQR(xm[0] - xcut[0]) +
+                       SQR(xm[1] - xcut[1]) +
+                       SQR(xm[2] - xcut[2]) ) / Speed_of_Light_air_cmns);
         // add path from the mirror till the camera
 
@@ -3531,4 +3531,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.2  1999/11/01 11:05:54  harald
+// Small changes to comile the reflector program under linux.
+// (Different use of NULL on DECalphas-osf1 and on linux)
+//
 // Revision 1.1.1.1  1999/10/29  07:00:33  harald
 // This is the startpoint for the futher development of the Reflector program
