Revision: 1616
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1616&view=rev
Author:   rorthomas
Date:     2011-01-30 23:54:55 +0000 (Sun, 30 Jan 2011)

Log Message:
-----------
fixed vwheels crashbug on client disconnect

Modified Paths:
--------------
    trunk/source/main/Beam.cpp
    trunk/source/main/BeamStats.cpp
    trunk/source/main/RoRFrameListener.h

Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp  2011-01-30 22:51:17 UTC (rev 1615)
+++ trunk/source/main/Beam.cpp  2011-01-30 23:54:55 UTC (rev 1616)
@@ -182,7 +182,8 @@
        // delete meshwheels
        for(int i=0; i<free_wheel;i++)
        {
-               if(vwheels[i].fm) delete vwheels[i].fm;
+
+               //if(vwheels[i].fm) delete vwheels[i].fm; // CRASH!
                if(vwheels[i].cnode)
                {
                        vwheels[i].cnode->removeAndDestroyAllChildren();

Modified: trunk/source/main/BeamStats.cpp
===================================================================
--- trunk/source/main/BeamStats.cpp     2011-01-30 22:51:17 UTC (rev 1615)
+++ trunk/source/main/BeamStats.cpp     2011-01-30 23:54:55 UTC (rev 1616)
@@ -151,6 +151,7 @@
        for(unsigned int c = 0; c < statClients.size(); c++)
        {
                //if(it->first != current_truck || trucks[it->first]->state == 
SLEEPING)
+               if(!trucks[statClients[c].trucknum]) continue;
                if(trucks[statClients[c].trucknum]->state == SLEEPING)
                        continue;
 

Modified: trunk/source/main/RoRFrameListener.h
===================================================================
--- trunk/source/main/RoRFrameListener.h        2011-01-30 22:51:17 UTC (rev 
1615)
+++ trunk/source/main/RoRFrameListener.h        2011-01-30 23:54:55 UTC (rev 
1616)
@@ -124,7 +124,7 @@
 // $Rev: 1355 $
 #define SVN_REVISION "$Rev: 1355 $"
 #define SVN_ID "$Id: RoRFrameListener.h 1355 2010-05-01 07:16:13Z rorthomas $"
-#define ROR_VERSION_STRING "0.37"
+#define ROR_VERSION_STRING "0.38"
 
 //using namespace Ogre;
 


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

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to