diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-22 20:35:23 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-22 20:35:23 +0200 |
commit | 4e073960766efc9196fda6ce2dc2056358b88380 (patch) | |
tree | e3524ced736adf0cab56118d0b979d7e16b079ba /src/control | |
parent | Fixed types in BulletTrace.h (diff) | |
download | re3-4e073960766efc9196fda6ce2dc2056358b88380.tar re3-4e073960766efc9196fda6ce2dc2056358b88380.tar.gz re3-4e073960766efc9196fda6ce2dc2056358b88380.tar.bz2 re3-4e073960766efc9196fda6ce2dc2056358b88380.tar.lz re3-4e073960766efc9196fda6ce2dc2056358b88380.tar.xz re3-4e073960766efc9196fda6ce2dc2056358b88380.tar.zst re3-4e073960766efc9196fda6ce2dc2056358b88380.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Replay.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/src/control/Replay.h b/src/control/Replay.h index 45a7be04..e54918b1 100644 --- a/src/control/Replay.h +++ b/src/control/Replay.h @@ -81,70 +81,70 @@ class CReplay }; - struct tGeneralPacket - { - uint8 type; - bool in_rcvehicle; - CMatrix camera_pos; - CVector player_pos; - }; - static_assert(sizeof(tGeneralPacket) == 88, "tGeneralPacket: error"); - - struct tClockPacket - { - uint8 type; - uint8 hours; - uint8 minutes; - private: - uint8 __align; - }; - static_assert(sizeof(tClockPacket) == 4, "tClockPacket: error"); - - struct tWeatherPacket - { - uint8 type; - uint8 old_weather; - uint8 new_weather; - float interpolation; - }; - static_assert(sizeof(tWeatherPacket) == 8, "tWeatherPacket: error"); - - struct tTimerPacket - { - uint8 type; - uint32 timer; - }; - static_assert(sizeof(tTimerPacket) == 8, "tTimerPacket: error"); - - struct tPedHeaderPacket - { - uint8 type; - uint8 index; - uint16 mi; - uint8 pedtype; - private: - uint8 __align[3]; - }; - static_assert(sizeof(tPedHeaderPacket) == 8, "tPedHeaderPacket: error"); - - struct tBulletTracePacket - { - uint8 type; - uint8 frames; - uint8 lifetime; - uint8 index; - CVector inf; - CVector sup; - }; - static_assert(sizeof(tBulletTracePacket) == 28, "tBulletTracePacket: error"); - - struct tEndOfFramePacket - { - uint8 type; - private: - uint8 __align[3]; - }; - static_assert(sizeof(tEndOfFramePacket) == 4, "tEndOfFramePacket: error"); + struct tGeneralPacket + { + uint8 type; + bool in_rcvehicle; + CMatrix camera_pos; + CVector player_pos; + }; + static_assert(sizeof(tGeneralPacket) == 88, "tGeneralPacket: error"); + + struct tClockPacket + { + uint8 type; + uint8 hours; + uint8 minutes; + private: + uint8 __align; + }; + static_assert(sizeof(tClockPacket) == 4, "tClockPacket: error"); + + struct tWeatherPacket + { + uint8 type; + uint8 old_weather; + uint8 new_weather; + float interpolation; + }; + static_assert(sizeof(tWeatherPacket) == 8, "tWeatherPacket: error"); + + struct tTimerPacket + { + uint8 type; + uint32 timer; + }; + static_assert(sizeof(tTimerPacket) == 8, "tTimerPacket: error"); + + struct tPedHeaderPacket + { + uint8 type; + uint8 index; + uint16 mi; + uint8 pedtype; + private: + uint8 __align[3]; + }; + static_assert(sizeof(tPedHeaderPacket) == 8, "tPedHeaderPacket: error"); + + struct tBulletTracePacket + { + uint8 type; + uint8 frames; + uint8 lifetime; + uint8 index; + CVector inf; + CVector sup; + }; + static_assert(sizeof(tBulletTracePacket) == 28, "tBulletTracePacket: error"); + + struct tEndOfFramePacket + { + uint8 type; + private: + uint8 __align[3]; + }; + static_assert(sizeof(tEndOfFramePacket) == 4, "tEndOfFramePacket: error"); private: static uint8 &Mode; @@ -179,8 +179,8 @@ private: public: static void Init(void); - static void DisableReplays(void); - static void EnableReplays(void); + static void DisableReplays(void); + static void EnableReplays(void); static void Update(void); static void FinishPlayback(void); static void Shutdown(void); @@ -189,8 +189,8 @@ public: static void StreamAllNecessaryCarsAndPeds(void); static bool ShouldStandardCameraBeProcessed(void); - inline static bool IsPlayingBack() { return Mode == MODE_PLAYBACK; } - inline static bool IsPlayingBackFromFile() { return bPlayingBackFromFile; } + inline static bool IsPlayingBack() { return Mode == MODE_PLAYBACK; } + inline static bool IsPlayingBackFromFile() { return bPlayingBackFromFile; } private: static void RecordThisFrame(void); |