mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fix lasersight action
This commit is contained in:
parent
f51eed1800
commit
deec54ff83
1 changed files with 9 additions and 9 deletions
|
@ -956,6 +956,15 @@ void BinocularCamera(ItemInfo* item)
|
|||
AlterFOV(LastFOV);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsHeld(In::Action))
|
||||
{
|
||||
ClearAction(In::Action);
|
||||
|
||||
auto origin = Camera.pos.ToVector3i();
|
||||
auto target = Camera.target.ToVector3i();
|
||||
LaraTorch(&origin, &target, player.ExtraHeadRot.y, 192);
|
||||
}
|
||||
}
|
||||
|
||||
AlterFOV(7 * (ANGLE(11.5f) - player.Control.Look.OpticRange), false);
|
||||
|
@ -1023,15 +1032,6 @@ void BinocularCamera(ItemInfo* item)
|
|||
Camera.oldType = Camera.type;
|
||||
|
||||
GetTargetOnLOS(&Camera.pos, &Camera.target, false, false);
|
||||
|
||||
if (IsHeld(In::Action))
|
||||
{
|
||||
ClearAction(In::Action);
|
||||
|
||||
auto origin = Camera.pos.ToVector3i();
|
||||
auto target = Camera.target.ToVector3i();
|
||||
LaraTorch(&origin, &target, player.ExtraHeadRot.y, 192);
|
||||
}
|
||||
}
|
||||
|
||||
void ConfirmCameraTargetPos()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue