Remove MAX_SIMULTANEOUS_LUA_FUNCTIONS. It's actually

"max lua functions ever"; we very quickly pass it.
This commit is contained in:
Glenn Maynard
2005-01-28 20:32:14 +00:00
parent b547efa5e7
commit a449b838b3
+2 -4
View File
@@ -7,13 +7,11 @@
#include "LuaManager.h" #include "LuaManager.h"
#include "LuaBinding.h" #include "LuaBinding.h"
#define MAX_SIMULTANEOUS_LUA_FUNCTIONS 10000
static CString GetNextFunctionName() static CString GetNextFunctionName()
{ {
static int id = 0; static int id = 0;
id = (id+1) % MAX_SIMULTANEOUS_LUA_FUNCTIONS; ++id;
return ssprintf("F%d",id); return ssprintf( "F%08x",id );
} }
ActorCommands::ActorCommands( const Commands& cmds ) ActorCommands::ActorCommands( const Commands& cmds )