From 61c0c9f53d3a57ee7fd5db5faa74c4b51e2da396 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 28 Oct 2017 18:12:50 -0400 Subject: Lots of updates * Networking is finally working * Started moveing physics into the shared domain * Streams now have a readString() and writeString() method * streams are passed to the lua context for networking * Refactored cameras and physboxes to use metatables * Finally wrote the pushvector3* and popvector3* methods * Fixed a few crashes in ;main * Deleted a lot of code --- src/client/initdevice.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client/initdevice.cpp') diff --git a/src/client/initdevice.cpp b/src/client/initdevice.cpp index e288863..e3af44c 100644 --- a/src/client/initdevice.cpp +++ b/src/client/initdevice.cpp @@ -148,13 +148,10 @@ void parseSetting(const char* settingname, lua_State* L, settings* set){ void settingsFromTable(lua_State *L, SIrrlichtCreationParameters* p){ lua_pushnil(L); settings* set = (settings*)malloc(sizeof(settings)); + printf("Loading settings:"); while(lua_next(L,-2) != 0){ - printf("%s - %s\n", - lua_typename(L, lua_type(L, -2)), - lua_typename(L, lua_type(L, -1))); if(lua_isstring(L,-2)){ const char* setstr = lua_tostring(L,-2); - printf("\tFound setting %s\n",setstr); parseSetting(setstr,L,set); }else{ printf("\tFound a non-string setting key! Key is a %s\n",luaL_typename(L,-1)); @@ -173,7 +170,7 @@ void settingsFromTable(lua_State *L, SIrrlichtCreationParameters* p){ p->WindowSize = set->windowsize; p->ZBufferBits = set->zbuffer; free(set); - printf("Settings loaded"); + printf("[OK]\n"); } IrrlichtDevice* spawnIrrDevice(lua_State* L){ -- cgit v1.2.3-70-g09d2