Revision: 2635 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2635&view=rev Author: ulteq Date: 2012-05-23 16:35:36 +0000 (Wed, 23 May 2012) Log Message: ----------- -Fix: fixes a bug in the speed limiter
Modified Paths: -------------- trunk/source/main/gameplay/RoRFrameListener.cpp trunk/source/main/physics/Beam.cpp Modified: trunk/source/main/gameplay/RoRFrameListener.cpp =================================================================== --- trunk/source/main/gameplay/RoRFrameListener.cpp 2012-05-23 16:28:00 UTC (rev 2634) +++ trunk/source/main/gameplay/RoRFrameListener.cpp 2012-05-23 16:35:36 UTC (rev 2635) @@ -1928,7 +1928,7 @@ void checkSpeedlimit(Beam* curr_truck, float dt) { - if (curr_truck->engine->getGear() != 0) + if (curr_truck->sl_speed_limit > 0.0f && curr_truck->engine->getGear() != 0) { float accl = (curr_truck->sl_speed_limit - std::abs(curr_truck->WheelSpeed)) * 2.0f; accl = std::max(0.0f, accl); Modified: trunk/source/main/physics/Beam.cpp =================================================================== --- trunk/source/main/physics/Beam.cpp 2012-05-23 16:28:00 UTC (rev 2634) +++ trunk/source/main/physics/Beam.cpp 2012-05-23 16:35:36 UTC (rev 2635) @@ -258,7 +258,7 @@ previousCrank = 0.0f; - sl_speed_limit = std::numeric_limits<float>::max(); + sl_speed_limit = 0.0f; state = SLEEPING; 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