From 4e09f9ee39e003b852471e3016411cc3a3169802 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 30 Jun 2019 23:29:53 +0300 Subject: Added camera funcs to Replay --- src/control/Replay.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/control/Replay.h') diff --git a/src/control/Replay.h b/src/control/Replay.h index 3a2ecc7f..d622ce9c 100644 --- a/src/control/Replay.h +++ b/src/control/Replay.h @@ -49,6 +49,8 @@ struct CStoredDetailedAnimationState uint16 aFlags2[6]; }; +void PlayReplayFromHD(void); + class CReplay { enum { @@ -245,6 +247,9 @@ private: static float &CameraFocusY; static float &CameraFocusZ; static bool &bPlayerInRCBuggy; + static float &fDistanceLookAroundCam; + static float &fAlphaAngleLookAroundCam; + static float &fBetaAngleLookAroundCam; public: static void Init(void); @@ -283,4 +288,7 @@ private: static void FindFirstFocusCoordinate(CVector *coord); static void ProcessLookAroundCam(void); static size_t FindSizeOfPacket(uint8); + + /* Absolute nonsense, but how could this function end up being outside of class? */ + friend void PlayReplayFromHD(void); }; -- cgit v1.2.3