Skip to content

[GEN][ZH] Fix missing unit voice when attacking the ground #1156

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xezon
Copy link

@xezon xezon commented Jun 22, 2025

This change fixes the missing unit voice when attacking the ground due wrong fallthrough at switch case GameMessage::MSG_DO_FORCE_ATTACK_GROUND in pickAndPlayUnitVoiceResponse()

In the original game, units would not play their attack voice when attacking the ground, except for the USA Tomahawk because it uses the VoiceBombard audio.

This issue is caused by a wrong switch case setup. It was introduced by an original developer who incorrectly added the case GameMessage::MSG_SWITCH_WEAPONS between the case GameMessage::MSG_DO_FORCE_ATTACK_GROUND and case GameMessage::MSG_DO_FORCE_ATTACK_OBJECT.

Fixed attack audio

generalszh.2025-06-22.10-15-04-70.mp4

…through at switch case GameMessage::MSG_DO_FORCE_ATTACK_GROUND in pickAndPlayUnitVoiceResponse()
@xezon xezon added Audio Is audio related Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker labels Jun 22, 2025
@xezon xezon changed the title [GEN][ZH] Fix missing unit voice when attacking ground due wrong fallthrough at switch case GameMessage::MSG_DO_FORCE_ATTACK_GROUND in pickAndPlayUnitVoiceResponse() [GEN][ZH] Fix missing unit voice when attacking the ground Jun 22, 2025
Copy link

@Mauller Mauller left a comment

Choose a reason for hiding this comment

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

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Audio Is audio related Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants