some code cleanup
started to move game-specific stuff into own class
This commit is contained in:
parent
e4b4e92e10
commit
fa64fe2ea7
12 changed files with 131 additions and 85 deletions
|
|
@ -445,11 +445,11 @@ void ConVarWrapper::RegisterVariable (const char *variable, const char *value, V
|
|||
{
|
||||
// this function adds globally defined variable to registration stack
|
||||
|
||||
VarPair newVariable;
|
||||
memset (&newVariable, 0, sizeof (VarPair));
|
||||
VarPair pair;
|
||||
memset (&pair, 0, sizeof (VarPair));
|
||||
|
||||
newVariable.reg.name = const_cast <char *> (variable);
|
||||
newVariable.reg.string = const_cast <char *> (value);
|
||||
pair.reg.name = const_cast <char *> (variable);
|
||||
pair.reg.string = const_cast <char *> (value);
|
||||
|
||||
int engineFlags = FCVAR_EXTDLL;
|
||||
|
||||
|
|
@ -460,11 +460,11 @@ void ConVarWrapper::RegisterVariable (const char *variable, const char *value, V
|
|||
else if (varType == VT_PASSWORD)
|
||||
engineFlags |= FCVAR_PROTECTED;
|
||||
|
||||
newVariable.reg.flags = engineFlags;
|
||||
newVariable.self = self;
|
||||
newVariable.type = varType;
|
||||
pair.reg.flags = engineFlags;
|
||||
pair.self = self;
|
||||
pair.type = varType;
|
||||
|
||||
m_regs.Push (newVariable);
|
||||
m_regs.Push (pair);
|
||||
}
|
||||
|
||||
void ConVarWrapper::PushRegisteredConVarsToEngine (bool gameVars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue