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

fix(lib): spawn vehicle property setting when warping #502

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

Manason
Copy link
Contributor

@Manason Manason commented Jul 1, 2024

Fixes #501

  • Tested
  • Re-ordered operations so that first the vehicle bucket is set, then the player is warped, and then we wait for the vehicle to have an owner (warp is set it wait for the warping player to become the owner) and then the properties are set.
  • Ensures that properties are set, or else deletes the vehicle and throws an error.

Copy link
Contributor

@solareon solareon left a comment

Choose a reason for hiding this comment

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

Makes sense, the order of operations between warp/prop set wasn't really discussed and this from a flow/onesync pov makes more sense.

@solareon solareon requested review from mafewtm and D4isDAVID July 1, 2024 07:35
@Manason Manason merged commit f55b653 into main Jul 1, 2024
4 checks passed
@Manason Manason deleted the fix-spawn-vehicle-warp branch July 1, 2024 14:29
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.

Spawning vehicle with warp can fail to set vehicle properties
2 participants