Group :: Games/Strategy
RPM: stratagus
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: stratagus-2.1-alt-FunctionName.patch
Download
Download
--- stratagus-040702/src/ai/script_ai.c- 2004-06-24 23:37:30 +0000
+++ stratagus-040702/src/ai/script_ai.c 2006-06-12 12:13:11 +0000
@@ -339,6 +339,10 @@ static int CclDefineAi(lua_State* l)
lua_pop(l, 1);
// Get name of function
+#if LUA_VERSION_NUM >= 501
+// hack
+ aitype->FunctionName = strdup("stub");
+#else
lua_pushstring(l, "debug");
lua_gettable(l, LUA_GLOBALSINDEX);
Assert(!lua_isnil(l, -1));
@@ -353,6 +357,7 @@ static int CclDefineAi(lua_State* l)
lua_pop(l, 2); // FIXME : check if this value is correct.
// We can have opcode of this function with string.dump(function)
// Problems are for sub functions...
+#endif
return 0;
}