[Fix] More mission string formatting weirdness.
This commit is contained in:
parent
34dccfb646
commit
5109958e29
@ -21,7 +21,7 @@ end
|
|||||||
|
|
||||||
function create()
|
function create()
|
||||||
-- Intro text.
|
-- 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.accept()
|
||||||
|
|
||||||
misn_stage = 0
|
misn_stage = 0
|
||||||
|
@ -221,7 +221,7 @@ int misn_run(Mission* misn, char* func) {
|
|||||||
if((ret = lua_pcall(misn->L, 0, 0, 0))) {
|
if((ret = lua_pcall(misn->L, 0, 0, 0))) {
|
||||||
/* Did an oops. */
|
/* Did an oops. */
|
||||||
err = (lua_isstring(misn->L, -1)) ? (char*) lua_tostring(misn->L, -1) : NULL;
|
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",
|
WARN("Mission '%s' -> '%s' : %s",
|
||||||
cur_mission->data->name, func, (err) ? err : "Unknown Error");
|
cur_mission->data->name, func, (err) ? err : "Unknown Error");
|
||||||
else ret = 1;
|
else ret = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user