-
Notifications
You must be signed in to change notification settings - Fork 119
nit: remove nader comments round 2 #1876
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
base: main
Are you sure you want to change the base?
nit: remove nader comments round 2 #1876
Conversation
bobtista
commented
Nov 18, 2025
- Closes //Added By Sadullah Nader #1829
25053af to
ad86912
Compare
|
|
||
| m_queuedDownloads.clear(); | ||
|
|
||
| // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also check for unnecessary blank lines that result from the removal of these comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I found a bunch and removed them. At some point we should use prettier or clang-tidy or something and unify the formatting across the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are quite a few left that imho should be dealt with in this PR, because they are part of the comments
e.g.
// End Add
// Added By Sadullah Nader
// Initialization missing and needed
m_putInContainerName.clear();I think you need to look above and below the removed comments and remove empty lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been going through and manually looking at files for a few hours now. Sometimes the empty lines above or below where Nader's comments lived are perfectly reasonable - eg the blocks of code would have had an empty line anyway, eg when variables are grouped or there are just newlines every n lines of assignments for style/readabilty. I'm about 1/4 of the way through reviewing all of the comments individually, addressing the empty lines around them, and feeling like I'm really using my time poorly.
If you have an idea for a script here I'm happy to chat about this more. For now I'm going to take a break. I'll push the latest changes when able (git is down) EDIT: pushed latest
1ada54a to
f0c3eea
Compare
f0c3eea to
c70ad0e
Compare
c70ad0e to
7f2be45
Compare
Core/GameEngine/Source/GameNetwork/GameSpy/Thread/PeerThread.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Behavior/ParkingPlaceBehavior.cpp
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/CrateCollide.cpp
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/DeliverPayloadAIUpdate.cpp
Show resolved
Hide resolved
...meEngine/Source/GameLogic/Object/Update/ProductionExitUpdate/DefaultProductionExitUpdate.cpp
Show resolved
Hide resolved
Skyaero42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through all the changed files.
I think these are the last ones that could be removed.
Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameLogic/Object/Update/StructureToppleUpdate.cpp
Outdated
Show resolved
Hide resolved
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp
Outdated
Show resolved
Hide resolved
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp
Show resolved
Hide resolved
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/StructureToppleUpdate.cpp
Outdated
Show resolved
Hide resolved
|
Mr Nader left a lot of work here for us. |
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given Generals and GeneralsMD files were touched individually by hand, how confident are we that the edits are in sync?
| m_failed(L"***FATAL*** String Manager failed to initialize properly") | ||
| { | ||
| // Added By Sadullah Nader | ||
| // Initializations missing and needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// below
| m_showRandomColor = TRUE; | ||
|
|
||
| m_observerColor; | ||
| m_randomColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialization missing here. Can fix in separate change.
| m_showRandomPlayerTemplate = TRUE; | ||
| m_showRandomStartPos = TRUE; | ||
| m_showRandomColor = TRUE; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// above
| // Initialization missing and needed | ||
| m_nextDrawable = NULL; | ||
| m_prevDrawable = NULL; | ||
| // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//