mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-27 14:20:59 +00:00
- fixed: P_AimCamera inverted the pitch.
This commit is contained in:
parent
790e13e5cb
commit
a1c03c9a62
1 changed files with 1 additions and 1 deletions
|
@ -4689,7 +4689,7 @@ void P_AimCamera(AActor *t1, DVector3 &campos, sector_t *&CameraSector, bool &un
|
||||||
|
|
||||||
double pc = pitch.Cos();
|
double pc = pitch.Cos();
|
||||||
|
|
||||||
vvec = { pc * angle.Cos(), pc * angle.Sin(), -pitch.Sin() };
|
vvec = { pc * angle.Cos(), pc * angle.Sin(), pitch.Sin() };
|
||||||
sz = t1->Top() - t1->Floorclip + clamp<double>(chase_height, -1000, 1000);
|
sz = t1->Top() - t1->Floorclip + clamp<double>(chase_height, -1000, 1000);
|
||||||
|
|
||||||
if (Trace(t1->PosAtZ(sz), t1->Sector, vvec, distance, 0, 0, NULL, trace) &&
|
if (Trace(t1->PosAtZ(sz), t1->Sector, vvec, distance, 0, 0, NULL, trace) &&
|
||||||
|
|
Loading…
Reference in a new issue