Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hual authored and Alex Cole committed Sep 2, 2023
1 parent 97ed954 commit 5746f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/Components/Recordings/recordings_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class RecordingsComponent final : public IRecordingsComponent, public PlayerConn
}

// Write on foot recording data
if (data->type_ == PlayerRecordingType_Driver && data->file_.good())
if (data->type_ == PlayerRecordingType_OnFoot && data->file_.good())
{
const uint32_t timeSinceRecordStart = duration_cast<Milliseconds>(Time::now() - data->start_).count();
data->file_.write(reinterpret_cast<const char*>(&timeSinceRecordStart), sizeof(uint32_t));
Expand Down Expand Up @@ -150,7 +150,7 @@ class RecordingsComponent final : public IRecordingsComponent, public PlayerConn
// Write driver recording data
if (data->type_ == PlayerRecordingType_Driver && data->file_.good())
{
uint32_t timeSinceRecordStart = duration_cast<Milliseconds>(Time::now() - data->start_).count();
const uint32_t timeSinceRecordStart = duration_cast<Milliseconds>(Time::now() - data->start_).count();
data->file_.write(reinterpret_cast<const char*>(&timeSinceRecordStart), sizeof(uint32_t));

uint8_t playerHealth = static_cast<uint8_t>(vehicleSync.PlayerHealthArmour.x);
Expand Down

0 comments on commit 5746f42

Please sign in to comment.