Revision: 2664
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2664&view=rev
Author:   ulteq
Date:     2012-05-25 10:06:42 +0000 (Fri, 25 May 2012)
Log Message:
-----------
-Feature: anti roll back in BeamEngine::AUTOMATIC (DRIVE, ONE, TWO)

Modified Paths:
--------------
    trunk/source/main/gameplay/RoRFrameListener.cpp

Modified: trunk/source/main/gameplay/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/gameplay/RoRFrameListener.cpp     2012-05-25 07:56:04 UTC 
(rev 2663)
+++ trunk/source/main/gameplay/RoRFrameListener.cpp     2012-05-25 10:06:42 UTC 
(rev 2664)
@@ -2647,6 +2647,18 @@
                                                                        }
                                                                } // end of if 
(gear_changed)
                                                        } // end of shitmode > 
BeamEngine::MANUAL
+
+                                                       // anti roll back in 
BeamEngine::DRIVE mode
+                                                       if 
(curr_truck->engine->getAutoMode()  == BeamEngine::AUTOMATIC &&
+                                                          
(curr_truck->engine->getAutoShift() == BeamEngine::DRIVE ||
+                                                           
curr_truck->engine->getAutoShift() == BeamEngine::TWO ||
+                                                           
curr_truck->engine->getAutoShift() == BeamEngine::ONE))
+                                                       {
+                                                               if 
(curr_truck->WheelSpeed < -0.1f)
+                                                               {
+                                                                       
curr_truck->brake = curr_truck->brakeforce;
+                                                               }
+                                                       }
                                                } // end of ->engine
 #ifdef USE_OPENAL
                                                if (curr_truck->brake > 
curr_truck->brakeforce / 6.0f)

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
Rigsofrods-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to