summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-13 12:57:25 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-13 12:57:25 +0200
commitbeb6f3bf8057232a1b1b5a1673d22cff618e3a83 (patch)
treeaf3911f35d37096c87af30807b48679351f1b809 /src/render/Hud.cpp
parentminor fix (diff)
downloadre3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.gz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.bz2
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.lz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.xz
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.tar.zst
re3-beb6f3bf8057232a1b1b5a1673d22cff618e3a83.zip
Diffstat (limited to '')
-rw-r--r--src/render/Hud.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index c7f61d5d..270cc07c 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -131,16 +131,16 @@ void CHud::Draw()
return;
if (m_Wants_To_Draw_Hud && !TheCamera.m_WideScreenOn) {
- bool DrawCrossHair = 0;
- bool DrawCrossHairPC = 0;
+ bool DrawCrossHair = false;
+ bool DrawCrossHairPC = false;
int32 WeaponType = FindPlayerPed()->m_weapons[FindPlayerPed()->m_currentWeapon].m_eWeaponType;
int32 Mode = TheCamera.Cams[TheCamera.ActiveCam].Mode;
if (Mode == CCam::MODE_SNIPER || Mode == CCam::MODE_ROCKETLAUNCHER || Mode == CCam::MODE_M16_1STPERSON || Mode == CCam::MODE_HELICANNON_1STPERSON)
- DrawCrossHair = 1;
+ DrawCrossHair = true;
if (Mode == CCam::MODE_M16_1STPERSON_RUNABOUT || Mode == CCam::MODE_ROCKETLAUNCHER_RUNABOUT || Mode == CCam::MODE_SNIPER_RUNABOUT)
- DrawCrossHairPC = 1;
+ DrawCrossHairPC = true;
/*
Draw Crosshairs
@@ -149,7 +149,7 @@ void CHud::Draw()
(!CPad::GetPad(0)->GetLookBehindForPed() || TheCamera.m_bPlayerIsInGarage) || Mode == CCam::MODE_1STPERSON_RUNABOUT) {
if (FindPlayerPed() && !FindPlayerPed()->EnteringCar()) {
if ((WeaponType >= WEAPONTYPE_COLT45 && WeaponType <= WEAPONTYPE_M16) || WeaponType == WEAPONTYPE_FLAMETHROWER)
- DrawCrossHairPC = 1;
+ DrawCrossHairPC = true;
}
}