diff options
| author | Alexander Pickering <alex@cogarr.net> | 2018-06-30 21:20:51 -0600 |
|---|---|---|
| committer | Alexander Pickering <alex@cogarr.net> | 2018-06-30 21:20:51 -0600 |
| commit | 06203d8767e7da55deb4947c7660ff0136a31f29 (patch) | |
| tree | 91bc57f8b6372d5d585e3bd83b366421d8da8855 /src/client/main.cpp | |
| parent | e2568651c4dc1e42f123b6e8e8c7597ed50fd355 (diff) | |
| download | brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.gz brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.bz2 brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.zip | |
Removed some dead code
Removed a lot of commented out old code
Diffstat (limited to 'src/client/main.cpp')
| -rw-r--r-- | src/client/main.cpp | 18 |
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(); |
