Skip to content
This repository has been archived by the owner. It is now read-only.

Record #402

Merged
merged 10 commits into from Apr 12, 2020
Merged

Record #402

merged 10 commits into from Apr 12, 2020

Conversation

@Nick007J
Copy link
Contributor

@Nick007J Nick007J commented Apr 10, 2020

No description provided.

pState->rightX = UINT8_MAX / 2 * pCar->GetRight().x;
pState->rightY = UINT8_MAX / 2 * pCar->GetRight().y;
pState->rightZ = UINT8_MAX / 2 * pCar->GetRight().z;
pState->forwardX = UINT8_MAX / 2 * pCar->GetForward().x;
pState->forwardY = UINT8_MAX / 2 * pCar->GetForward().y;
pState->forwardZ = UINT8_MAX / 2 * pCar->GetForward().z;
pState->pos = pCar->GetPosition();
pState->velX = 1.0f * (UINT16_MAX / 2) * pCar->GetMoveSpeed().x;
pState->velY = 1.0f * (UINT16_MAX / 2) * pCar->GetMoveSpeed().y;
pState->velZ = 1.0f * (UINT16_MAX / 2) * pCar->GetMoveSpeed().z;
Comment on lines 333 to 342

This comment has been minimized.

@ghost

ghost Apr 10, 2020

maybe pState should use more CVector?

This comment has been minimized.

@Nick007J

Nick007J Apr 10, 2020
Author Contributor

these are 1 byte variables

pState->velX = 0.5f * INT16_MAX * pCar->GetMoveSpeed().x;
pState->velY = 0.5f * INT16_MAX * pCar->GetMoveSpeed().y;
pState->velZ = 0.5f * INT16_MAX * pCar->GetMoveSpeed().z;
Comment on lines +340 to +342

This comment has been minimized.

@ghost

ghost Apr 10, 2020

shouldn't 0.5f be removed?

This comment has been minimized.

@Nick007J

Nick007J Apr 11, 2020
Author Contributor

it was a mistake in original PR

@erorcun
Copy link
Collaborator

@erorcun erorcun commented Apr 10, 2020

lgtm

RecordingState = STATE_PLAYBACK;
}
if (RecordingState == STATE_PLAYBACK) {
pDataBufferPointer = (uint8*)malloc(MEMORY_FOR_GAME_RECORD);

This comment has been minimized.

@aap

aap Apr 11, 2020
Member

new

@ghost
ghost approved these changes Apr 11, 2020
Copy link

@ghost ghost left a comment

lgtm

@Nick007J Nick007J merged commit fa0f554 into GTAmodding:master Apr 12, 2020
1 check passed
1 check passed
@appveyor
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants