mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 15:33:45 +00:00
[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
1 changed files with 5 additions and 6 deletions
|
@ -746,13 +746,12 @@ void CScrollBar::Update()
|
||||||
case 3:
|
case 3:
|
||||||
m_pMessage = "CONGESTION EASING . . . "; break;
|
m_pMessage = "CONGESTION EASING . . . "; break;
|
||||||
case 4:
|
case 4:
|
||||||
if (CWeather::Foggyness <= 0.5)
|
if (CWeather::Foggyness > 0.5f)
|
||||||
if (CWeather::WetRoads <= 0.5)
|
m_pMessage = "VISIBILITY LOW ! ";
|
||||||
m_pMessage = "CAUTION: CARJACKING CRIME WAVE HITS CITY . . . HAVE A NICE DAY . . . ";
|
else if (CWeather::WetRoads > 0.5f)
|
||||||
else
|
|
||||||
m_pMessage = "SNOW EXPECTED ! ";
|
m_pMessage = "SNOW EXPECTED ! ";
|
||||||
else
|
else
|
||||||
m_pMessage = "VISIBILITY LOW ! ";
|
m_pMessage = "CAUTION: CARJACKING CRIME WAVE HITS CITY . . . HAVE A NICE DAY . . . ";
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
m_pMessage = FindTunnelMessage(); break;
|
m_pMessage = FindTunnelMessage(); break;
|
||||||
|
|
Loading…
Reference in a new issue