Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37045362
en ru br
ALT Linux repos
5.0: 2.1rel-alt2
4.1: 2.1rel-alt2
4.0: 2.1rel-alt2
3.0: 2.1pre2-alt1

Group :: Games/Strategy
RPM: stratagus

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: stratagus-2.1-alt-FunctionName.patch
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;
 }
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin