mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 13:29:01 +00:00
Fix misplaced targeting
This commit is contained in:
parent
1fd7b0288c
commit
b9a8ad9481
1 changed files with 2 additions and 4 deletions
|
@ -144,12 +144,10 @@ void CHud::Draw()
|
||||||
float fMultBright = SpriteBrightness * 0.03f * (0.25f * fStep + 0.75f);
|
float fMultBright = SpriteBrightness * 0.03f * (0.25f * fStep + 0.75f);
|
||||||
CRect rect;
|
CRect rect;
|
||||||
if (DrawCrossHairPC && TheCamera.Cams[TheCamera.ActiveCam].Using3rdPersonMouseCam()) {
|
if (DrawCrossHairPC && TheCamera.Cams[TheCamera.ActiveCam].Using3rdPersonMouseCam()) {
|
||||||
#ifndef ASPECT_RATIO_SCALE
|
|
||||||
float f3rdX = SCREEN_WIDTH * TheCamera.m_f3rdPersonCHairMultX;
|
float f3rdX = SCREEN_WIDTH * TheCamera.m_f3rdPersonCHairMultX;
|
||||||
float f3rdY = SCREEN_HEIGHT * TheCamera.m_f3rdPersonCHairMultY;
|
float f3rdY = SCREEN_HEIGHT * TheCamera.m_f3rdPersonCHairMultY;
|
||||||
#else
|
#ifdef ASPECT_RATIO_SCALE
|
||||||
float f3rdX = (((TheCamera.m_f3rdPersonCHairMultX - 0.5f) / ((CDraw::GetAspectRatio()) / (DEFAULT_ASPECT_RATIO))) + 0.5f) * SCREEN_WIDTH;
|
f3rdY -= SCREEN_SCALE_Y(2.0f);
|
||||||
float f3rdY = SCREEN_HEIGHT * TheCamera.m_f3rdPersonCHairMultY + SCREEN_SCALE_Y(-2.0f);
|
|
||||||
#endif
|
#endif
|
||||||
if (FindPlayerPed() && WeaponType == WEAPONTYPE_M16) {
|
if (FindPlayerPed() && WeaponType == WEAPONTYPE_M16) {
|
||||||
rect.left = f3rdX - SCREEN_SCALE_X(32.0f * 0.6f);
|
rect.left = f3rdX - SCREEN_SCALE_X(32.0f * 0.6f);
|
||||||
|
|
Loading…
Reference in a new issue