Revision: 2498
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2498&view=rev
Author: ulteq
Date: 2012-05-04 16:31:55 +0000 (Fri, 04 May 2012)
Log Message:
-----------
-Feature: Added feature request #527.
Improved cruise control system.
Modified Paths:
--------------
trunk/source/main/gameplay/BeamEngine.cpp
trunk/source/main/gameplay/RoRFrameListener.cpp
Modified: trunk/source/main/gameplay/BeamEngine.cpp
===================================================================
--- trunk/source/main/gameplay/BeamEngine.cpp 2012-05-04 00:57:07 UTC (rev
2497)
+++ trunk/source/main/gameplay/BeamEngine.cpp 2012-05-04 16:31:55 UTC (rev
2498)
@@ -154,7 +154,7 @@
//starter
if (contact && starter && curEngineRPM<stallRPM*1.5)
totaltorque+=-brakingTorque;//1000.0f;
//restart
- if (!running && curEngineRPM>stallRPM && starter)
+ if (!running && curEngineRPM>stallRPM && contact)
{
running=1;
#ifdef USE_OPENAL
Modified: trunk/source/main/gameplay/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/gameplay/RoRFrameListener.cpp 2012-05-04 00:57:07 UTC
(rev 2497)
+++ trunk/source/main/gameplay/RoRFrameListener.cpp 2012-05-04 16:31:55 UTC
(rev 2498)
@@ -1854,7 +1854,9 @@
void updateCruiseControl(Beam* curr_truck, float dt)
{
- if (INPUTENGINE.getEventValue(EV_TRUCK_BRAKE) > 0.05 ||
INPUTENGINE.getEventValue(EV_TRUCK_MANUAL_CLUTCH) > 0.05 ||
(curr_truck->parkingbrake && curr_truck->engine->getGear() > 0))
+ if (INPUTENGINE.getEventValue(EV_TRUCK_BRAKE) > 0.05 ||
INPUTENGINE.getEventValue(EV_TRUCK_MANUAL_CLUTCH) > 0.05
+ || (curr_truck->parkingbrake && curr_truck->engine->getGear() >
0)
+ || !curr_truck->engine->running || !curr_truck->engine->contact)
{
curr_truck->cruisecontrolToggle();
return;
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel