Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Jul 20, 2025

This fixes the broken money deposit and withdraw audio and academy income record.

The issue is caused by copying the Money class after the Money player index was already set. It is Zero Hour specific, because Generals does deposit the money correctly.

An alternative/supplementary fix here would be to exclude Money::m_playerIndex from copying in the Money class. I am not 100% sure if that meets expectations for Money.

I noticed this Money issue when testing the "Free Build" debug command.

@xezon xezon added Audio Is audio related Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker ZH Relates to Zero Hour labels Jul 20, 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.

This fixes the audio issues

@Mauller
Copy link

Mauller commented Jul 20, 2025

I wonder if there is a similar issue for the hackers money making sound, as that does not play in zero hour either compared to generals

@xezon xezon merged commit ebec03f into TheSuperHackers:main Jul 22, 2025
9 checks passed
@xezon xezon deleted the xezon/fix-money-player-index branch July 22, 2025 20:07
fbraz3 pushed a commit to fbraz3/GeneralsX that referenced this pull request Nov 10, 2025
…ecord (TheSuperHackers#1311)

Money deposits and withdrawals now trigger a beep sound
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 ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants