updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / critterding / critterding.patch
blob398a87730979396b8c697206f23ffdd0df8d53c6
1 --- src/utils/bullet/BulletSoftBody/btSoftBodyInternals.h 2010-02-18 03:52:17.000000000 +0500
2 +++ src/utils/bullet/BulletSoftBody/btSoftBodyInternals.h.new 2011-10-18 13:15:11.733697235 +0600
3 @@ -26,6 +26,8 @@
4 #include "BulletCollision/CollisionShapes/btConvexInternalShape.h"
5 #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h"
7 +#include <string.h> //for memset
9 //
10 // btSymMatrix
12 @@ -172,8 +174,7 @@
13 template <typename T>
14 static inline void ZeroInitialize(T& value)
16 - static const T zerodummy;
17 - value=zerodummy;
18 + memset(&value,0,sizeof(T));
21 template <typename T>
22 --- src/scenes/evolution.cpp 2010-03-08 03:06:46.000000000 +0500
23 +++ src/scenes/evolution.cpp.new 2011-10-18 13:16:50.400360540 +0600
24 @@ -297,7 +297,7 @@
26 else if ( world->mouseRayHitEntity->type == 0 )
28 - CritterB* c = static_cast<const CritterB*>(world->mouseRayHitEntity);
29 + const CritterB* c = static_cast<const CritterB*>(world->mouseRayHitEntity);
30 Textprinter::Instance()->print( oldx+margin, oldy, "critter");
31 Textprinter::Instance()->print(oldx+rmargindistance, oldy, "%1i", c->critterID);
32 Textprinter::Instance()->print( oldx+margin, oldy+vspacer, "energy");