clean up ScreenTestLights

This commit is contained in:
Chris Danford
2004-03-29 09:44:00 +00:00
parent 60a89b8cf4
commit 936f2066e1
10 changed files with 66 additions and 49 deletions
+2 -1
View File
@@ -249,7 +249,8 @@ void PlayerOptions::FromString( CString sOptions )
#define SET_FLOAT( opt ) \
{ m_ ## opt = level; m_Speed ## opt = speed; }
const bool on = (level > 0.5f);
if( sBit == "boost" ) SET_FLOAT( fAccels[ACCEL_BOOST] )
if( sBit == "clearall" ) Init();
else if( sBit == "boost" ) SET_FLOAT( fAccels[ACCEL_BOOST] )
else if( sBit == "brake" || sBit == "land" ) SET_FLOAT( fAccels[ACCEL_BRAKE] )
else if( sBit == "wave" ) SET_FLOAT( fAccels[ACCEL_WAVE] )
else if( sBit == "expand" ) SET_FLOAT( fAccels[ACCEL_EXPAND] )