Repository navigation
Conversation
…rent Telling whether a body that touched another is a replica read each replica's movement object and the actor inside it. When that movement object was gone, the game crashed in the touch. The replicas' entity ids are now kept when they are made and dropped when they go, and the touch compares ids only. The replica tick also keeps each replica's movement as its actor holds it now, with one log line when it changes.
Collaborator
Author
|
Shipped in KCDS 1.2.3 through #358. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A player's game crashed when its body touched another player's body (access violation in the body touch test,
replica_body). That test went through every replica's stored movement object and read the actor inside it. When the game had freed that movement object, the read hit freed memory.COMBAT remote movement replaced). The other combat code that reads the stored movement then gets the live one.How it was tested
Checklist
python Dev/tools/format_source.py --checkpasses.