From a449b838b3e7c51ca05a2b6ba27c2c2a6b1681e8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 28 Jan 2005 20:32:14 +0000 Subject: [PATCH] Remove MAX_SIMULTANEOUS_LUA_FUNCTIONS. It's actually "max lua functions ever"; we very quickly pass it. --- stepmania/src/ActorCommands.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ActorCommands.cpp b/stepmania/src/ActorCommands.cpp index 26aeb77945..083d1adb9c 100644 --- a/stepmania/src/ActorCommands.cpp +++ b/stepmania/src/ActorCommands.cpp @@ -7,13 +7,11 @@ #include "LuaManager.h" #include "LuaBinding.h" -#define MAX_SIMULTANEOUS_LUA_FUNCTIONS 10000 - static CString GetNextFunctionName() { static int id = 0; - id = (id+1) % MAX_SIMULTANEOUS_LUA_FUNCTIONS; - return ssprintf("F%d",id); + ++id; + return ssprintf( "F%08x",id ); } ActorCommands::ActorCommands( const Commands& cmds )