Skip to content

Refactor movement sounds and add safety checks#63

Open
DasBander wants to merge 1 commit intoProjectBorealis:mainfrom
DasBander:main
Open

Refactor movement sounds and add safety checks#63
DasBander wants to merge 1 commit intoProjectBorealis:mainfrom
DasBander:main

Conversation

@DasBander
Copy link
Copy Markdown

Prevent crashes and reduce copies across movement code: add null checks for DamageEvent.DamageTypeClass and PBPlayerCharacter, guard against divide-by-zero in ShouldCatchAir, and remove several redundant pass-through overrides. Change step/sprint/jump/land sound APIs to return const TArray<TObjectPtr>& (avoids copying raw pointers) and update PlayMoveSound/PlayJumpSound callsites to handle pointer/references and validate arrays before use. Also change bEdgeFrictionAlwaysWhenCrouching from float to bool in the movement header and clean up related declarations.

Prevent crashes and reduce copies across movement code: add null checks for DamageEvent.DamageTypeClass and PBPlayerCharacter, guard against divide-by-zero in ShouldCatchAir, and remove several redundant pass-through overrides. Change step/sprint/jump/land sound APIs to return const TArray<TObjectPtr<USoundCue>>& (avoids copying raw pointers) and update PlayMoveSound/PlayJumpSound callsites to handle pointer/references and validate arrays before use. Also change bEdgeFrictionAlwaysWhenCrouching from float to bool in the movement header and clean up related declarations.
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.

1 participant