diff --git a/source/core/coreplayer.h b/source/core/coreplayer.h index 8b6667210..88682d282 100644 --- a/source/core/coreplayer.h +++ b/source/core/coreplayer.h @@ -71,11 +71,6 @@ public: return angles; } - const DRotator& getCameraAngles() const - { - return CameraAngles; - } - void updateCameraAngles(const double interpfrac) { // Apply the current interpolated angle state to the render angles. diff --git a/source/games/duke/src/game_misc.cpp b/source/games/duke/src/game_misc.cpp index 76fa9dc2d..d186302fa 100644 --- a/source/games/duke/src/game_misc.cpp +++ b/source/games/duke/src/game_misc.cpp @@ -421,7 +421,7 @@ bool GameInterface::DrawAutomapPlayer(const DVector2& mxy, const DVector2& cpos, double j = clamp(czoom * act->spr.scale.Y + abs(pp->truefz - act->getOffsetZ()) * REPEAT_SCALE, (1. / 3.), 2.); auto const vec = OutAutomapVector(mxy - cpos, cangvect, czoom, xydim); - auto const daang = -(pp->getCameraAngles().Yaw - cang).Normalized360().Degrees(); + auto const daang = -(pp->CameraAngles.Yaw - cang).Normalized360().Degrees(); DrawTexture(twod, basetex, false, vec.X, vec.Y, DTA_TranslationIndex, TRANSLATION(Translation_Remap + setpal(pp), act->spr.pal), DTA_CenterOffset, true, DTA_Rotate, daang, DTA_Color, shadeToLight(act->spr.shade), DTA_ScaleX, j, DTA_ScaleY, j, TAG_DONE); diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index a7dae6c7b..b0a753c18 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -802,7 +802,7 @@ static void analyzesprites(tspriteArray& tsprites, const DVector3& viewpos, doub } tsp->pos = pos; - tsp->Angles.Yaw = pp->getCameraAngles().Yaw; + tsp->Angles.Yaw = pp->CameraAngles.Yaw; //continue; } else @@ -1448,7 +1448,7 @@ bool GameInterface::DrawAutomapPlayer(const DVector2& mxy, const DVector2& cpos, if (spnum >= 0) { - const auto daang = -(pp->getCameraAngles().Yaw - cang).Normalized360().Degrees(); + const auto daang = -(pp->CameraAngles.Yaw - cang).Normalized360().Degrees(); auto vect = OutAutomapVector(mxy - cpos, cangvect, czoom, xydim); // This repeat scale is correct.