Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9095 in orxonox.OLD for branches/presentation


Ignore:
Timestamp:
Jul 4, 2006, 3:11:27 AM (18 years ago)
Author:
bensch
Message:

presentation: links and checks agains lm

Location:
branches/presentation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/config.h.in

    r8293 r9095  
    2424/* Define to 1 if you have the `dl' library (-ldl). */
    2525#undef HAVE_LIBDL
    26 
    27 /* Define to 1 if you have the `m' library (-lm). */
    28 #undef HAVE_LIBM
    2926
    3027/* Define to 1 if you have the `OpenGL' library (-lOpenGL). */
  • branches/presentation/configure.ac

    r8523 r9095  
    621621
    622622# FIXME: Replace `main' with a function in `-lm':
    623  AC_CHECK_LIB([m], [main])
     623 AX_CHECK_REQUIRED_HEADER_LIB([math.h], [m], [sqrt])
    624624 AX_CHECK_REQUIRED_HEADER_LIB([zlib.h], [z], [zlibVersion],,, [http://www.zlib.net])
    625625
  • branches/presentation/src/lib/math/quaternion.cc

    r9090 r9095  
    2828  #define PRINT(x) printf
    2929#endif
    30 
    31 using namespace std;
    3230
    3331/////////////////
     
    5856  m[0][1] = x.y;
    5957  m[0][2] = x.z;
    60   m[0][3] = 0;
     58  m[0][3] = 0.0;
    6159  m[1][0] = y.x;
    6260  m[1][1] = y.y;
    6361  m[1][2] = y.z;
    64   m[1][3] = 0;
     62  m[1][3] = 0.0;
    6563  m[2][0] = z.x;
    6664  m[2][1] = z.y;
    6765  m[2][2] = z.z;
    68   m[2][3] = 0;
    69   m[3][0] = 0;
    70   m[3][1] = 0;
    71   m[3][2] = 0;
    72   m[3][3] = 1;
     66  m[2][3] = 0.0;
     67  m[3][0] = 0.0;
     68  m[3][1] = 0.0;
     69  m[3][2] = 0.0;
     70  m[3][3] = 1.0;
    7371
    7472  this->from4x4(m);
     
    285283  int    i, j, k;
    286284
    287   int nxt[3] = {1, 2, 0};
     285  static int nxt[3] = {1, 2, 0};
    288286
    289287  tr = m[0][0] + m[1][1] + m[2][2];
  • branches/presentation/src/world_entities/npcs/generic_npc.cc

    r9087 r9095  
    222222        Vector dir = (currentAnimation.v - this->getAbsCoor());
    223223        dir.y = 0.0f;
    224         dir.getNormalized();
     224        dir.normalize();
    225225        this->setAbsDir(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0)));
    226226
Note: See TracChangeset for help on using the changeset viewer.