more useful error messages
This commit is contained in:
@@ -949,14 +949,15 @@ void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString
|
||||
{
|
||||
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
||||
|
||||
RString sName = ssprintf( "%s::%s", sClassName.c_str(), sValueName.c_str() );
|
||||
if( EndsWith(sValueName, "Command") )
|
||||
{
|
||||
ActorUtil::ParseActorCommands( L, sValue );
|
||||
ActorUtil::ParseActorCommands( L, sValue, sName );
|
||||
}
|
||||
else
|
||||
{
|
||||
LuaHelpers::PrepareExpression( sValue );
|
||||
LuaHelpers::RunExpression( L, sValue, ssprintf("%s::%s", sClassName.c_str(), sValueName.c_str()) );
|
||||
LuaHelpers::RunExpression( L, sValue, sName );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user