TGB 1.6: errors in helperfuncs.cs
by Joe Rossi · in Torque Game Builder · 12/22/2007 (6:22 pm) · 0 replies
Every time we close the options editor, it prints errors to the console for the ForegroundSleep and BackgroundSleep controls. Looks to me like it was used during development to show what was going on.. but it doesn't need to be in the release, and should be commented out.
\tgb\common\gameScripts\helperfuncs.cs
\tgb\common\gameScripts\helperfuncs.cs
// AggregateControl.getValue() uses the value of the first control that has an
// internal name, if it has not cached a value via .setValue
function AggregateControl::getValue(%this)
{
for(%i = 0; %i < %this.getCount(); %i++)
{
%obj = %this.getObject(%i);
if(%obj.internalName !$= "")
{
[b]
//Comment me
// error("obj = " @ %obj.getId() @ ", " @ %obj.getName() @ ", " @ %obj.internalName );
// error(" value = " @ %obj.getValue());
[/b]
return %obj.getValue();
}
}