Revision: 1600
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1600&view=rev
Author:   aperion
Date:     2011-01-26 03:31:54 +0000 (Wed, 26 Jan 2011)

Log Message:
-----------
cleanup silly little logic.

Modified Paths:
--------------
    trunk/source/main/Beam.cpp

Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp  2011-01-26 02:36:15 UTC (rev 1599)
+++ trunk/source/main/Beam.cpp  2011-01-26 03:31:54 UTC (rev 1600)
@@ -3137,14 +3137,7 @@
                }
                if (shifter > 0)
                {
-                       // this is a really crappy if line, but somehow if 
(shifter/2 == int(shifter/2)) did not work reliable at all
-                       if (shifter == 2 || shifter == 4 || shifter == 6 || 
shifter == 8 || shifter == 10 || shifter == 12)
-                       {
-                               cstate = 0.0f;
-                       } else
-                       {
-                               cstate = 1.0f;
-                       }
+                       cstate = shifter % 2;
                }
                div++;
        }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to