mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- Adjust chase-cam code to work in a pitch-corrected capacity.
This commit is contained in:
parent
41fc5660e5
commit
7f124eef58
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ bool calcChaseCamPos(DVector3& ppos, DCoreActor* act, sectortype** psect, DAngle
|
|||
if (!*psect) return false;
|
||||
|
||||
// Calculate new pos to shoot backwards
|
||||
DVector3 npos = -DVector3(ang.ToVector(), horiz.Tan()) * backamp;
|
||||
DVector3 npos = -DVector3(ang.ToVector() * horiz.Cos(), horiz.Sin()) * backamp;
|
||||
|
||||
HitInfoBase hitinfo;
|
||||
auto bakcstat = act->spr.cstat;
|
||||
|
|
Loading…
Reference in a new issue