Skip to content

Commit

Permalink
properly unset movement sound areas on characters when riding mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelday008 committed Oct 19, 2021
1 parent 1a912a9 commit 7b22a28
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,9 @@ public void UnsetMovementSoundArea(MovementSoundArea movementSoundArea) {
if (movementSoundArea == this.movementSoundArea) {
this.movementSoundArea = null;
}
if (unitControllerMode == UnitControllerMode.Mount && riderUnitController != null) {
riderUnitController.UnsetMovementSoundArea(movementSoundArea);
}
}

public void EnableMotor() {
Expand Down

0 comments on commit 7b22a28

Please sign in to comment.