You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes the unused GameMessage* msg parameter from Player::processSelectTeamGameMessage and Player::processAddTeamGameMessage in both Generals/ and GeneralsMD/ codebases. The parameter was passed at the call sites in GameLogicDispatch.cpp but never read inside the function bodies, so its removal is correct and complete across declarations, definitions, and call sites.
Confidence Score: 5/5
Safe to merge — mechanical parameter removal with no logic changes.
All six changed files are consistent: declarations, definitions, and call sites are updated in lock-step for both Generals and GeneralsMD. The removed parameter was provably unused in both function bodies. No logic, data flow, or behaviour is altered.
No files require special attention.
Important Files Changed
Filename
Overview
Generals/Code/GameEngine/Include/Common/Player.h
Declarations of processSelectTeamGameMessage and processAddTeamGameMessage updated to drop the unused GameMessage* parameter.
Zero Hour call sites updated to omit the msg argument; no other logic changes.
Sequence Diagram
sequenceDiagram
participant GLD as GameLogicDispatch
participant P as Player
Note over GLD,P: Before PR
GLD->>P: processSelectTeamGameMessage(hotkeyNum, msg)
GLD->>P: processAddTeamGameMessage(hotkeyNum, msg)
Note over GLD,P: After PR
GLD->>P: processSelectTeamGameMessage(hotkeyNum)
GLD->>P: processAddTeamGameMessage(hotkeyNum)
xezon
changed the title
chore(gamemessage): Remove unused parameter from Player member functions
chore(player): Remove unused GameMessage parameter from Player member functions
Apr 30, 2026
xezon
changed the title
chore(player): Remove unused GameMessage parameter from Player member functions
chore(player): Remove unused GameMessage argument from Player member functions
May 1, 2026
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
GenRelates to GeneralsMinorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour
2 participants
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.
This PR removes unused function parameter
GameMessage* msgfrom functionsPlayer::processSelectTeamGameMessageandPlayer::processAddTeamGameMessage.TODO: