From ed58795eaf03bdee0b1fae8d05ce5b86d17549f7 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 30 Jun 2018 16:15:05 -0600 Subject: Warning-less build All compile warning for -Wall have been fixed --- src/client/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/client/main.cpp') diff --git a/src/client/main.cpp b/src/client/main.cpp index f764fe9..1fcc65d 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -117,6 +117,7 @@ int main(int argc, char *argv[]){ //Create a new lua state, this gets shared everywhere lua_State *state = luaL_newstate(); L = state; + printf("Created lua state at %p\n",L); //Load the lua libraries loadLLibs(state); //Defined in initdevice.cpp, creates the irrlicht device @@ -133,12 +134,14 @@ int main(int argc, char *argv[]){ luaL_openlibs(state); printf("Loadded irr libs...\n"); //Sets the global event handeler + printf("Creating event receiver\n"); GlobalEventReceiver ger = GlobalEventReceiver(device); + printf("Created event receiver\n"); device->setEventReceiver(&ger); int iErr = luaL_dofile(state,"../data/init.lua"); if(iErr != 0){ + printf("Failed to open lua file:../data/init.lua\n"); lua_error(state); - printf("Failed to open lua file:../data/guitest.lua\n"); } //Load some bullet physics stuff @@ -160,6 +163,8 @@ int main(int argc, char *argv[]){ lua_pushcfunction(L,setbackgroundcolor); lua_setfield(L,-2,"setbackgroundcolor"); lua_pop(L,1); + printf("About to check if device run\n"); + printf("Device is %p\n",device); while(device->run()){ gameloop_net(L); gameloop_phys(UpdateElement); @@ -192,6 +197,7 @@ int main(int argc, char *argv[]){ lua_call(state,0,0); lua_pop(state,1); }else{ + printf("Tick was nil...\n"); lua_pop(state,2); } //lua_pop(state,2); -- cgit v1.2.3-70-g09d2