Remove MAX_SIMULTANEOUS_LUA_FUNCTIONS. It's actually
"max lua functions ever"; we very quickly pass it.
This commit is contained in:
@@ -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 )
|
||||||
|
|||||||
Reference in New Issue
Block a user