fix up PaneDisplay not clamping any value less than 0, higher than 100%

This commit is contained in:
Jonathan Payne
2010-12-14 00:30:35 -08:00
parent 00952c364d
commit a8b065b919
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ local function CreatePaneDisplayGraph( _pnPlayer, _sLabel, _rcRadarCategory )
else
self:stoptweening();
self:decelerate(0.2);
self:zoomtowidth( GetRadarData( _pnPlayer, _rcRadarCategory ) * 50 );
self:zoomtowidth( clamp(GetRadarData( _pnPlayer, _rcRadarCategory ) * 50,0,50) );
end
end;
};