Revision: 1574
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1574&view=rev
Author:   rorthomas
Date:     2011-01-17 09:59:22 +0000 (Mon, 17 Jan 2011)

Log Message:
-----------
hooks should not lock to the same truck

Modified Paths:
--------------
    trunk/source/main/Beam.cpp

Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp  2011-01-17 09:52:46 UTC (rev 1573)
+++ trunk/source/main/Beam.cpp  2011-01-17 09:59:22 UTC (rev 1574)
@@ -5043,6 +5043,7 @@
                        // iterate over all trucks
                        for (int t=0; t<trucksnum; t++)
                        {
+                               if(t == this->trucknum) continue; // dont lock 
to self
                                if(!trucks[t]) continue;
                                if (trucks[t]->state==SLEEPING) continue;
 


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to