Fix signalCall, healthinfo tooltips

This commit is contained in:
Henrique Santiago
2013-02-10 01:17:20 -02:00
parent 11cb287a21
commit dfb0150a7d
6 changed files with 41 additions and 19 deletions

View File

@@ -152,6 +152,7 @@ void Application::poll()
void Application::exit()
{
g_lua.callGlobalField<bool>("g_app", "onExit");
m_stopping = true;
}

View File

@@ -506,7 +506,7 @@ int LuaInterface::signalCall(int numArgs, int numRets)
}
pop(numArgs + 1); // pops the table of function and arguments
if(numRets == 1) {
if(numRets == 1 || numRets == -1) {
rets = 1;
pushBoolean(done);
}