diff options
Diffstat (limited to 'src/client/main.cpp')
| -rw-r--r-- | src/client/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp index 0a82e99..f08862c 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -27,6 +27,7 @@ extern "C" { #include <shared/lua_api/common.hpp> #include "../shared/lua_api/load_net.hpp" #include "../shared/phys/physcommon.hpp" +#include "../shared/lua_api/load_common.hpp" using namespace irr; using namespace core; @@ -104,6 +105,7 @@ void UpdateElement(btCollisionObject* obj){ btTransform transform = obj->getWorldTransform(); btVector3 pos = transform.getOrigin(); node->setPosition(core::vector3df((f32)pos[0], (f32)pos[1], (f32)pos[2])); + //printf("Setting new position to %f %f %f\n", pos[0], pos[1], pos[2]); //Set rotation btQuaternion rot = transform.getRotation(); @@ -153,6 +155,7 @@ int main(int argc, char *argv[]){ luaL_openlibs(state); loadIrrLibs(state,device); loadNetLibs(state); + loadCommonLibs(state); printf("Loadded irr libs...\n"); //Sets the global event handeler printf("Creating event receiver\n"); |
