Skip to content

Conversation

@vabold
Copy link
Owner

@vabold vabold commented Nov 1, 2024

No description provided.


void CTGPMetadata::read(const CTGPGhostFooter *data) {
if (!data) {
isCTGP = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is initialized to false, can we assume that this line can be removed as redundant?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The read function should guarantee state, regardless of previous condition.

u8 trackSHA1[20];
u64 ghostDBPlayerID;
f32 trueFinishTime;
u8 _20[0x27 - 0x20];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add @unused doxygen comment I guess?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide an example of what that looks like?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f32 m_angVel0YFactor; ///< Scalar for damping angular velocity.
bool m_forceUpright;  ///< Specifies if we should return the vehicle to upwards orientation.
bool m_noGravity;     ///< @unused

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@vabold vabold added the P4 Priority: Trivial label Nov 4, 2024
@vabold vabold force-pushed the ghost branch 2 times, most recently from 954dddc to f8d4e35 Compare December 15, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P4 Priority: Trivial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants