Fix undeclared variables in luaconsole.c
This commit is contained in:
parent
61e86ca72d
commit
3c37540cfd
@ -18,6 +18,7 @@ int tptParts, tptPartsMeta, tptElementTransitions;
|
|||||||
void luacon_open(){
|
void luacon_open(){
|
||||||
int i = 0, j;
|
int i = 0, j;
|
||||||
char tmpname[12];
|
char tmpname[12];
|
||||||
|
int currentElementMeta, currentElement;
|
||||||
const static struct luaL_reg tptluaapi [] = {
|
const static struct luaL_reg tptluaapi [] = {
|
||||||
{"test", &luatpt_test},
|
{"test", &luatpt_test},
|
||||||
{"drawtext", &luatpt_drawtext},
|
{"drawtext", &luatpt_drawtext},
|
||||||
@ -181,7 +182,6 @@ tpt.partsdata = nil");
|
|||||||
tptElementTransitions = lua_gettop(l);
|
tptElementTransitions = lua_gettop(l);
|
||||||
for(i = 1; i < PT_NUM; i++)
|
for(i = 1; i < PT_NUM; i++)
|
||||||
{
|
{
|
||||||
int currentElementMeta, currentElement;
|
|
||||||
for(j = 0; j < strlen(ptypes[i].name); j++)
|
for(j = 0; j < strlen(ptypes[i].name); j++)
|
||||||
tmpname[j] = tolower(ptypes[i].name[j]);
|
tmpname[j] = tolower(ptypes[i].name[j]);
|
||||||
tmpname[strlen(ptypes[i].name)] = 0;
|
tmpname[strlen(ptypes[i].name)] = 0;
|
||||||
|
Reference in New Issue
Block a user