patch-Common_h 421 B

12345678910111213
  1. $OpenBSD: patch-Common_h,v 1.1 2009/10/22 23:07:54 sthen Exp $
  2. --- Common.h.orig Thu Oct 15 14:17:31 2009
  3. +++ Common.h Thu Oct 15 14:18:17 2009
  4. @@ -27,7 +27,7 @@
  5. #define FIXED_TO_INT(iNT) ((iNT)>>FIXED_SHIFT)
  6. struct Vec2 {
  7. - Vec2() {}
  8. + Vec2() : x(0), y(0) {}
  9. Vec2( const Vec2& o ) : x(o.x), y(o.y) {}
  10. explicit Vec2( const b2Vec2& o ) : x((int)o.x), y((int)o.y) {}
  11. Vec2( int xx, int yy ) : x(xx), y(yy) {}