- implement proper GC handling for AActor::ViewPos.
This commit is contained in:
parent
4049a0d8f1
commit
27cba4c990
6 changed files with 13 additions and 12 deletions
|
|
@ -793,7 +793,7 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
|||
// Handles offsetting the camera with ChaseCam and/or viewpos.
|
||||
{
|
||||
AActor *mo = viewpoint.camera;
|
||||
FViewPosition *VP = mo->ViewPos;
|
||||
DViewPosition *VP = mo->ViewPos;
|
||||
const DVector3 orig = { mo->Pos().XY(), mo->player ? mo->player->viewz : mo->Z() + mo->GetCameraHeight() };
|
||||
viewpoint.ActorPos = orig;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue