aboutsummaryrefslogtreecommitdiff
path: root/src/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index 1fcc65d..eb8eca6 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -33,9 +33,6 @@ using namespace io;
using namespace gui;
using namespace std::chrono;
-//btDiscreteDynamicsWorld* World;
-//irr::core::list<btRigidBody*> Objects;
-
lua_State* L;
IrrlichtDevice* device;
IVideoDriver* driver;
@@ -145,10 +142,6 @@ int main(int argc, char *argv[]){
}
//Load some bullet physics stuff
-
- //Load some menu
- //loadMenu("Some menu",device);
-
driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
@@ -157,8 +150,6 @@ int main(int argc, char *argv[]){
printf("Everything registered, about to start running device!\n");
- //u32 TimeStamp = irrTimer->getTime(), DeltaTime = 0;
- //high_resolution_clock::time_point t1 = high_resolution_clock::now();
lua_getglobal(L,"GAME");
lua_pushcfunction(L,setbackgroundcolor);
lua_setfield(L,-2,"setbackgroundcolor");
@@ -169,11 +160,6 @@ int main(int argc, char *argv[]){
gameloop_net(L);
gameloop_phys(UpdateElement);
if(device->isWindowActive()){
- //high_resolution_clock::time_point now = high_resolution_clock::now();
- //duration<double> delta = now-t1;
- //double steps = delta.count() * 100;
- //UpdatePhysics(steps,UpdateElement);
- //t1 = now;
driver->beginScene(true, true, background);
lua_getglobal(state,"GAME");
@@ -200,11 +186,7 @@ int main(int argc, char *argv[]){
printf("Tick was nil...\n");
lua_pop(state,2);
}
- //lua_pop(state,2);
}
- //lua_close(state);
- //printf("clearing objects...\n");
- //ClearObjects(World,Objects,RemoveISceneNode); //Clearing objects must be done after we droped the device.
phys_shutdown(RemoveISceneNode);
device->drop();