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

Part of #9473: Create Vehicle::UpdateMotionCollisionDetection #11949

Merged
merged 3 commits into from Jul 6, 2020

Conversation

hdpoliveira
Copy link
Contributor

Converted from vehicle_update_motion_collision_detection

@hdpoliveira
Copy link
Contributor Author

Question: should I change the xyz parameters to use Coords xyz? They're 16 bits, while Coords are 32 bits

@tupaschoal
Copy link
Member

I guess yeah, ultimately we'll have to do it anyway, might as well do it now, the larger types shouldn't make a difference

@duncanspumpkin
Copy link
Contributor

Yes it should be a coordsxyz. The size of the types doesn't matter for this. We have standardised towards 32bit as gives us room to expand in the future potentially.

Copy link
Member

@tupaschoal tupaschoal left a comment

Choose a reason for hiding this comment

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

Just small notes on readability

src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
@hdpoliveira hdpoliveira force-pushed the vehicle_update_9473_12 branch 4 times, most recently from 78a7f2a to 38ce2d0 Compare June 20, 2020 14:34
Copy link
Member

@tupaschoal tupaschoal left a comment

Choose a reason for hiding this comment

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

Just some small simplifications

src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
src/openrct2/ride/Vehicle.cpp Outdated Show resolved Hide resolved
@tupaschoal tupaschoal merged commit 8b5f3b5 into OpenRCT2:develop Jul 6, 2020
@tupaschoal tupaschoal added this to the v0.3.0 milestone Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants