From 954e963d1ab5c5b012b1be6c343b995f1b0c8bc8 Mon Sep 17 00:00:00 2001 From: Sachith Hasaranga Seneviratne Date: Fri, 21 Mar 2014 15:40:08 +0530 Subject: [PATCH] Removed unnecessary comment --- src/scriptengine/script_engine.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/scriptengine/script_engine.cpp b/src/scriptengine/script_engine.cpp index e5f6d81be..1386d7922 100644 --- a/src/scriptengine/script_engine.cpp +++ b/src/scriptengine/script_engine.cpp @@ -71,13 +71,6 @@ void ScriptEngine::runScript(std::string scriptName) return; } - // We don't want to allow the script to hang the application, e.g. with an - // infinite loop, so we'll use the line callback function to set a timeout - // that will abort the script after a certain time. Before executing the - // script the timeOut variable will be set to the time when the script must - // stop executing. - //DWORD timeOut; - //r = ctx->SetLineCallback(asFUNCTION(LineCallback), &timeOut, asCALL_CDECL); if( r < 0 ) { std::cout << "Failed to set the line callback function." << std::endl; @@ -88,7 +81,7 @@ void ScriptEngine::runScript(std::string scriptName) // Find the function for the function we want to execute. //This is how you call a normal function with arguments - //asIScriptFunction *func = engine->GetModule(0)->GetFunctionByDecl("void onTrigger(float, float)"); + //asIScriptFunction *func = engine->GetModule(0)->GetFunctionByDecl("void func(arg1Type, arg2Type)"); asIScriptFunction *func = m_engine->GetModule(0)->GetFunctionByDecl("void onTrigger()"); if( func == 0 ) {