diff --git a/dat/missions/emp_collective01.lua b/dat/missions/emp_collective01.lua index b1493ab..9740d9b 100644 --- a/dat/missions/emp_collective01.lua +++ b/dat/missions/emp_collective01.lua @@ -21,7 +21,7 @@ end function create() -- Intro text. - if tk.yesno(title[1], string.format(text[1], player.name())) then + if tk.yesno(title[1], text[1], player.name()) then misn.accept() misn_stage = 0 diff --git a/src/misn_lua.c b/src/misn_lua.c index 6457d1d..5d3c2f6 100644 --- a/src/misn_lua.c +++ b/src/misn_lua.c @@ -221,7 +221,7 @@ int misn_run(Mission* misn, char* func) { if((ret = lua_pcall(misn->L, 0, 0, 0))) { /* Did an oops. */ err = (lua_isstring(misn->L, -1)) ? (char*) lua_tostring(misn->L, -1) : NULL; - if(strcmp(err, "Mission Done")) + if(strcmp(err, "Mission Done")!=0) WARN("Mission '%s' -> '%s' : %s", cur_mission->data->name, func, (err) ? err : "Unknown Error"); else ret = 1;