Skip to content

Conversation

@bobtista
Copy link

@bobtista bobtista self-assigned this Nov 18, 2025
@bobtista bobtista force-pushed the bobtista/remove-nader-comments-comprehensive branch 2 times, most recently from 25053af to ad86912 Compare November 18, 2025 03:34

m_queuedDownloads.clear();

//

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.

Copy link
Author

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.

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

Copy link
Author

@bobtista bobtista Nov 18, 2025

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

@bobtista bobtista force-pushed the bobtista/remove-nader-comments-comprehensive branch from 1ada54a to f0c3eea Compare November 18, 2025 19:51
@bobtista bobtista force-pushed the bobtista/remove-nader-comments-comprehensive branch from f0c3eea to c70ad0e Compare November 18, 2025 22:24
@bobtista bobtista force-pushed the bobtista/remove-nader-comments-comprehensive branch from c70ad0e to 7f2be45 Compare November 18, 2025 22:33
@xezon xezon added the Refactor Edits the code with insignificant behavior changes, is never user facing label Nov 19, 2025
Copy link

@Skyaero42 Skyaero42 left a 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.

@xezon
Copy link

xezon commented Nov 19, 2025

Mr Nader left a lot of work here for us.

Copy link

@xezon xezon left a 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
Copy link

@xezon xezon Nov 20, 2025

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;
Copy link

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;

Copy link

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;
//
Copy link

Choose a reason for hiding this comment

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

//

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

//Added By Sadullah Nader

3 participants