diff -r ba351235688e -r 7dcc8419dbdb variables.h --- a/variables.h Sun Jul 15 00:32:26 2012 +0300 +++ b/variables.h Sun Jul 15 03:24:46 2012 +0300 @@ -44,10 +44,9 @@ #include "scriptreader.h" struct ScriptVar { - int type; str name; str statename; - str value; + int value; unsigned int index; ScriptVar* next; }; @@ -62,8 +61,9 @@ #define ITERATE_SCRIPT_VARS(g) \ for (g = g_ScriptVariable; g != NULL; g = g->next) -ScriptVar* DeclareGlobalVariable (ScriptReader* r, str name, int type); +ScriptVar* DeclareGlobalVariable (ScriptReader* r, str name); unsigned int CountGlobalVars (); void InitVariables (); +ScriptVar* FindGlobalVariable (str name); #endif // __VARIABLES_H__ \ No newline at end of file