Revision: 2540
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2540&view=rev
Author:   ulteq
Date:     2012-05-11 21:49:47 +0000 (Fri, 11 May 2012)
Log Message:
-----------
-Fix: converted PSI to Bar output

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

Modified: trunk/source/main/gameplay/OutProtocol.cpp
===================================================================
--- trunk/source/main/gameplay/OutProtocol.cpp  2012-05-11 21:46:20 UTC (rev 
2539)
+++ trunk/source/main/gameplay/OutProtocol.cpp  2012-05-11 21:49:47 UTC (rev 
2540)
@@ -17,14 +17,13 @@
 You should have received a copy of the GNU General Public License
 along with Rigs of Rods.  If not, see <http://www.gnu.org/licenses/>.
 */
+#include "OutProtocol.h"
 
 #include "BeamEngine.h"
 #include "BeamFactory.h"
 #include "RoRVersion.h"
 #include "Settings.h"
 
-#include "OutProtocol.h"
-
 using namespace Ogre;
 
 OutProtocol::OutProtocol(void) : 
@@ -153,7 +152,7 @@
                gd.PLID        = 0;
                gd.Speed       = fabs(truck->WheelSpeed);
                gd.RPM         = truck->engine->getRPM();
-               gd.Turbo       = truck->engine->getTurboPSI();
+               gd.Turbo       = truck->engine->getTurboPSI() * 0.0689475729f;
                gd.EngTemp     = 0; // TODO
                gd.Fuel        = 0; // TODO
                gd.OilPressure = 0; // TODO

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