X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.cpp;h=5c1d6ff12c10a3dc77a519246cc761a8eba2ee40;hb=67690e081c28b818e94796be284206326bc8a6b9;hp=050ec72dbf5d532f722e10a8e18782840686ed86;hpb=1486ceaaf9dd7a9d2d7e3654550b9a2768df2a56;p=supertux.git diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 050ec72db..5c1d6ff12 100644 --- a/src/scripting/functions.cpp +++ b/src/scripting/functions.cpp @@ -27,7 +27,7 @@ std::string translate(const std::string& text) void display_text_file(const std::string& filename) { std::string file - = ScriptInterpreter::current()->get_working_directory() + filename; + = ScriptInterpreter::current()->get_working_directory() + filename; main_loop->push_screen(new TextScroller(file)); } @@ -36,15 +36,13 @@ void import(HSQUIRRELVM v, const std::string& filename) std::string file = ScriptInterpreter::current()->get_working_directory() + filename; if(sqstd_loadfile(v, file.c_str(), true) < 0) { - msg_warning("couldn't load script '" << filename << "' (" - << file << ")"); + msg_warning << "couldn't load script '" << filename << "' (" << file << ")" << std::endl; return; } sq_push(v, -2); if(sq_call(v, 1, false) < 0) { - msg_warning("Couldn't execute script '" << filename << "' (" - << file << ")"); + msg_warning << "Couldn't execute script '" << filename << "' (" << file << ")" << std::endl; return; } }