[lcs] corrections for CScrollBar (code style)
Changes were made to be compliant with the coding style: - All floats should be explicit by specifying "f" suffix so compiler doesn't use double as default - Changed the conditional order to be more clear about what the "if" chain trying to achieve Thanks Nick007J
This commit is contained in:
parent
ee9e8bf11e
commit
e0601296a9
@ -746,13 +746,12 @@ void CScrollBar::Update()
|
||||
case 3:
|
||||
m_pMessage = "CONGESTION EASING . . . "; break;
|
||||
case 4:
|
||||
if (CWeather::Foggyness <= 0.5)
|
||||
if (CWeather::WetRoads <= 0.5)
|
||||
m_pMessage = "CAUTION: CARJACKING CRIME WAVE HITS CITY . . . HAVE A NICE DAY . . . ";
|
||||
else
|
||||
m_pMessage = "SNOW EXPECTED ! ";
|
||||
else
|
||||
if (CWeather::Foggyness > 0.5f)
|
||||
m_pMessage = "VISIBILITY LOW ! ";
|
||||
else if (CWeather::WetRoads > 0.5f)
|
||||
m_pMessage = "SNOW EXPECTED ! ";
|
||||
else
|
||||
m_pMessage = "CAUTION: CARJACKING CRIME WAVE HITS CITY . . . HAVE A NICE DAY . . . ";
|
||||
break;
|
||||
case 5:
|
||||
m_pMessage = FindTunnelMessage(); break;
|
||||
|
Loading…
Reference in New Issue
Block a user