- implement proper GC handling for AActor::ViewPos.

This commit is contained in:
Christoph Oelckers 2022-04-02 07:52:22 +02:00
commit 27cba4c990
6 changed files with 13 additions and 12 deletions

View file

@ -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;