Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1038 for code/trunk


Ignore:
Timestamp:
Apr 13, 2008, 2:59:01 PM (17 years ago)
Author:
landauf
Message:

compiles on tardis

Location:
code/trunk/src/orxonox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/CMakeLists.txt

    r1037 r1038  
    3838TARGET_LINK_LIBRARIES( orxonox
    3939  ${OGRE_LIBRARIES}
     40  ${Lua_LIBRARIES}
    4041  util
    4142  core
  • code/trunk/src/orxonox/Orxonox.cc

    r1035 r1038  
    435435
    436436    // Times up to frameSmoothingTime_ seconds old should be kept
    437     unsigned long discardThreshold = (unsigned long)frameSmoothingTime_ * 1000.0f;
     437    unsigned long discardThreshold = (unsigned long)(frameSmoothingTime_ * 1000.0f);
    438438
    439439    // Find the oldest time to keep
  • code/trunk/src/orxonox/core/CMakeLists.txt

    r1037 r1038  
    3131TARGET_LINK_LIBRARIES( core
    3232  util
    33 
    3433  ${Lua_LIBRARIES}
    3534  ${OIS_LIBRARIES}
  • code/trunk/src/orxonox/core/Script.cc

    r1037 r1038  
    109109    error = luaL_loadstring(luaState_, init.c_str());
    110110#else
    111     error = lua_load(luaState_, &orxonox::Script::lua_Chunkreader, init.c_str(), "init");
     111    error = lua_load(luaState_, &orxonox::Script::lua_Chunkreader, (void*)init.c_str(), "init");
    112112#endif
    113113    if (error == 0)
  • code/trunk/src/orxonox/core/Script.h

    r1029 r1038  
    3131
    3232#if LUA_VERSION_NUM != 501
    33     inline const char * lua_Chunkreader(lua_State *L, void *data, size_t *size) { return NULL;};
     33    inline static const char * lua_Chunkreader(lua_State *L, void *data, size_t *size) { return NULL;};
    3434#endif
    3535
Note: See TracChangeset for help on using the changeset viewer.