Revision: 2667
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2667&view=rev
Author: ulteq
Date: 2012-05-25 11:51:11 +0000 (Fri, 25 May 2012)
Log Message:
-----------
-Fix: compromise for engines with low maxRPM
Modified Paths:
--------------
trunk/source/main/gameplay/BeamEngine.cpp
Modified: trunk/source/main/gameplay/BeamEngine.cpp
===================================================================
--- trunk/source/main/gameplay/BeamEngine.cpp 2012-05-25 11:05:07 UTC (rev
2666)
+++ trunk/source/main/gameplay/BeamEngine.cpp 2012-05-25 11:51:11 UTC (rev
2667)
@@ -332,10 +332,9 @@
}
// engine speed limiter
- if (curEngineRPM > maxRPM) // you could add a factor of 1.248f for
legacy purposes (a factor of 1.0f significantly lowers the top speed of most
vehicles)
+ if (curEngineRPM > maxRPM + 500.0f) // you could add a factor of 1.248f
for legacy purposes (a factor of 1.0f significantly lowers the top speed of
most vehicles)
{
- float acc = 0.0f + 1.0f / (1.0f + (curEngineRPM - maxRPM) /
2.0f);
- setAcc(acc);
+ setAcc(0.0f);
}
// avoid over-revving
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