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
View File
@@ -45,3 +45,4 @@ Data/SpeedMods.txt
syntax: regexp
.*\#.*\#$
glob:Cache/Banners/AdditionalSongs_Airspace Preview_Derailed_Derailed bn.png
+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;
};
+5
View File
@@ -1332,6 +1332,11 @@ ShowNumCourseSongs=true
#
UsePlayerSelectMenu=false
SelectMenuAvailable=false
#
ShowPaneDisplayFrameP1=false
ShowPaneDisplayTextP1=false
ShowPaneDisplayFrameP2=false
ShowPaneDisplayTextP2=false
[ScreenNetSelectMusic]
StepsDisplayP1X=SCREEN_CENTER_X-240
StepsDisplayP1Y=SCREEN_CENTER_Y+185