Skip to content

Conversation

@bobtista
Copy link

Fix spelling errors in code comments.

@greptile-apps
Copy link

greptile-apps bot commented Jan 18, 2026

Greptile Summary

This PR systematically corrects spelling errors in code comments across 105 files in the GeneralsMD game engine codebase. All changes are limited to comments only—no functional code was modified.

Common corrections made:

  • impelmentationimplementation (multiple files)
  • extentionextension (18 instances in AIDock.cpp alone)
  • doens'tdoesn't
  • propogatedpropagated
  • convinienceconvenience
  • neccessarynecessary
  • heirarchyhierarchy
  • carraigecarriage
  • And many other similar corrections

Impact:

  • Improves code documentation quality and readability
  • No functional changes to the codebase
  • All corrections are accurate and appropriate

Confidence Score: 5/5

  • This PR is completely safe to merge with zero risk
  • All 186 line changes are spelling corrections in comments only. No functional code was modified. All corrections were verified to be accurate (e.g., "impelmentation" → "implementation", "extention" → "extension"). The previous issue with "doens't" → "does't" has been corrected to "doesn't".
  • No files require special attention

Important Files Changed

Filename Overview
GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIDock.cpp Corrected 18 instances of "extention" to "extension" in comments
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp Fixed multiple spelling errors: "doens't" → "doesn't", "implemtation" → "implementation", "maintenence" → "maintenance", "verbage" → "verbiage", "thise" → "these"
GeneralsMD/Code/GameEngine/Include/GameClient/GameWindow.h Corrected spelling in comments: "propogated" → "propagated", "addtional" → "additional", "sytem" → "system", "heirarchy" → "hierarchy", "piont" → "point", "chilc" → "child", "paramater" → "parameter", "reguardless" → "regardless"
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManager.cpp Fixed spelling errors: "statis" → "status", "propogate" → "propagate", "debuggin" → "debugging", "widnow" → "window", "compaired" → "compared", "intialize" → "initialize", "legths" → "lengths"
GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp Corrected spelling: "neccessary" → "necessary", "allocater" → "allocator", "provied" → "provided", "indentifier" → "identifier"
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/RailroadGuideAIUpdate.cpp Fixed spelling: "wont" → "won't", "buliding" → "building", "reseting" → "resetting", "carraige" → "carriage" (2 instances)

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant IDE as IDE/Editor
    participant Files as Comment Text
    participant Review as Code Review
    
    Dev->>IDE: Identify spelling errors in comments
    IDE->>Files: Scan 105 files across codebase
    
    Note over Files: Core/GameEngine/*<br/>Generals/Code/GameEngine/*<br/>GeneralsMD/Code/GameEngine/*
    
    Files->>Dev: Found spelling errors:<br/>- impelmentation → implementation<br/>- extention → extension<br/>- doens't → doesn't<br/>- and many more...
    
    Dev->>Files: Apply corrections to comments
    
    loop For each file
        Files->>Files: Replace misspelled word<br/>with correct spelling
    end
    
    Files->>Review: 186 lines changed (only comments)
    Review->>Review: Verify corrections are accurate
    Review->>Dev: Approve changes (documentation quality improved)
Loading

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

105 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile


/// A convenience function to reveal shroud at some location
// Queueing does not give you control of the timestamp to enforce the queue. I own the delay, you don't.
// Queuing does not give you control of the timestamp to enforce the queue. I own the delay, you don't.

Choose a reason for hiding this comment

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

Both spellings are technically correct.

Copy link
Author

Choose a reason for hiding this comment

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

Whichever doesn't make Xezon's IDE complain then? :)

Choose a reason for hiding this comment

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

Although not exclusively, queuing aligns more to American English, while queueing is used more in British English.
We use American English as that was the language that EA used. So I would say this change is correct.

@xezon xezon added the Documentation Is documentation or complementary resource label Jan 19, 2026
@xezon
Copy link

xezon commented Jan 19, 2026

It looks like not all Stubbjax comments are addressed.

bobtista and others added 14 commits January 19, 2026 16:06
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…rolBarCommand.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
…er.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
…rolBarCommand.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
…Menus/KeyboardOptionsMenu.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
…Menus/KeyboardOptionsMenu.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
…nkerBusterBehavior.cpp

Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
Co-authored-by: Stubbjax <stubbjax02@hotmail.com>
@bobtista bobtista force-pushed the fix/typos-generalsmd-engine branch from 0be45b4 to 64fc1d0 Compare January 19, 2026 22:07
@bobtista
Copy link
Author

It looks like not all Stubbjax comments are addressed.

addressed and rebased main

TheRadar->removeObject( this );

// Just in case I have been sporting one of thise fancy Terrain Decals,
// Just in case I have been sporting one of these fancy Terrain Decals,

Choose a reason for hiding this comment

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

Super nit: I imagine this was a those due to the proximity of i and o.

Suggested change
// Just in case I have been sporting one of these fancy Terrain Decals,
// Just in case I have been sporting one of those fancy Terrain Decals,

//
// since we're assuming all inventory exit commands appear in a continuous order,
// we need to also need to keep track of what is the last valid inventory commadn index
// we need to also need to keep track of what is the last valid inventory command index

Choose a reason for hiding this comment

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

Remove duplicate instance of 'need to'.

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

Labels

Documentation Is documentation or complementary resource

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants