Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking abi #710

Closed
wants to merge 11 commits into from
Prev Previous commit
Fixes
Hual authored and Alex Cole committed Sep 2, 2023
commit 5746f42d73118b70ceb43edc864897243c766923
4 changes: 2 additions & 2 deletions Server/Components/Recordings/recordings_main.cpp
Original file line number Diff line number Diff line change
@@ -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));
@@ -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);