From 3329a6bd79cf502edb79d51a88f299803a12be33 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 7 Jan 2014 00:39:27 -0500 Subject: [PATCH] fix element buttons not changing color when using tpt.el.color, remove 4 char restriction on element names with tpt.el.name --- src/cat/LegacyLuaAPI.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 96f050746..4ce278a01 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -264,7 +264,7 @@ int luacon_element_getproperty(char * key, int * format, unsigned int * modified offset = offsetof(Element, Colour); *format = 0; if (modified_stuff) - *modified_stuff |= LUACON_EL_MODIFIED_GRAPHICS; + *modified_stuff |= LUACON_EL_MODIFIED_GRAPHICS | LUACON_EL_MODIFIED_MENUS; } else if (strcmp(key, "colour")==0){ offset = offsetof(Element, Colour); @@ -457,12 +457,6 @@ int luacon_elementwrite(lua_State* l){ //Convert to upper case for(j = 0; j < strlen(tempstring); j++) tempstring[j] = toupper(tempstring[j]); - if(strlen(tempstring)>4) - { - free(tempstring); - free(key); - return luaL_error(l, "Name too long"); - } if(luacon_ci->GetParticleType(tempstring) != -1) { free(tempstring);