start changing Lua to a singleton object

This commit is contained in:
Glenn Maynard
2005-01-19 22:27:24 +00:00
parent 048ff316e7
commit 91a6486f9e
8 changed files with 60 additions and 51 deletions
+6 -6
View File
@@ -38,20 +38,20 @@ Command::Arg::operator CString ()
Command::Arg::operator float ()
{
Lua::PrepareExpression( s ); // strip invalid chars
return Lua::RunExpressionF( s );
LUA->PrepareExpression( s ); // strip invalid chars
return LUA->RunExpressionF( s );
}
Command::Arg::operator int ()
{
Lua::PrepareExpression( s ); // strip invalid chars
return (int)Lua::RunExpressionF( s );
LUA->PrepareExpression( s ); // strip invalid chars
return (int)LUA->RunExpressionF( s );
}
Command::Arg::operator bool ()
{
Lua::PrepareExpression( s ); // strip invalid chars
return Lua::RunExpressionF( s ) != 0.0f;
LUA->PrepareExpression( s ); // strip invalid chars
return LUA->RunExpressionF( s ) != 0.0f;
}
void Command::Load( const CString &sCommand )