From b9f659a31dde729cefd7d4d143ac549c99384fe8 Mon Sep 17 00:00:00 2001 From: Brett <15183337+Brett208@users.noreply.github.com> Date: Sat, 12 Sep 2026 13:46:33 -0400 Subject: [PATCH 1/2] Minor grammar corrections to source code comments in RequiredExports & TethysGame --- game/RequiredExports.h | 6 +++--- game/TethysGame.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/game/RequiredExports.h b/game/RequiredExports.h index 487a1c2..e33758d 100644 --- a/game/RequiredExports.h +++ b/game/RequiredExports.h @@ -31,7 +31,7 @@ struct AIModDesc { // Important level details int missionType; // Mission type (defined above) or mission number (positive values) for campaign games - int numPlayers; // Number of players (on a multipalyer map) + int numPlayers; // Number of players (on a multiplayer map) int maxTechLevel; // Maximum tech level (Set to 12 to enable all techs) int boolUnitMission; // Set to 1 to disable most reports (suitable for unit-only missions) // Extra baggage that doesn't need to be set properly @@ -85,10 +85,10 @@ static_assert(32 == sizeof(AIModDescEx), "AIModDesc is an unexpected size"); Export const AIModDescEx DescBlockEx = { numAiPlayers }; -// This struct defined a memory region to be Saved/Loaded to/from saved game files. +// This struct defines a memory region to be Saved/Loaded to/from saved game files. // Note: See GetSaveRegions exported function // Note: This implies all level data must be statically declared. Avoid using "new". -// Note: Setting bufferStart to 0 means no data (include buffer size) is present in the saved game file +// Note: Setting bufferStart to 0 means no data (including buffer size) is present in the saved game file // Note: Setting bufferStart to non-zero and length to 0 means the size (4 bytes) is written to the saved game file. struct BufferDesc { diff --git a/game/TethysGame.h b/game/TethysGame.h index 0a1b146..004c9ec 100644 --- a/game/TethysGame.h +++ b/game/TethysGame.h @@ -3,7 +3,7 @@ #define OP2 __declspec(dllimport) #endif -// Note: This file contains the defintion of the TethysGame class +// Note: This file contains the definition of the TethysGame class // which controls the overall game environment #include "MapIdEnum.h" @@ -95,7 +95,7 @@ class OP2 TethysGame // EMP Missile // Note: FindEMPMissileTarget searches aligned 8x8 blocks, for the block with the greatest weight // Note: The target location is at the block center (+3, +3) - // Note: Targets first found block of heighest (non-negative) weight, or the first block if all blocks have negative weight + // Note: Targets first found block of highest (non-negative) weight, or the first block if all blocks have negative weight // Note: Target player military units weigh 64, non-target player military units weigh -32, and non-target player non-military units weigh 1. static LOCATION __fastcall FindEMPMissleTarget(int startTileX, int startTileY, int endTileX, int endTileY, int destPlayerNum); // Launches an EMP missile. May be launched from off screen (no spaceport required). From 5ef882227d4c98187b8ed1dfcb9e2e9c28c28ecc Mon Sep 17 00:00:00 2001 From: Brett <15183337+Brett208@users.noreply.github.com> Date: Sat, 12 Sep 2026 13:47:03 -0400 Subject: [PATCH 2/2] Standardize spacing for comments on Enumerations in NonExportedEnums --- game/NonExportedEnums.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/NonExportedEnums.h b/game/NonExportedEnums.h index 25a7cd8..0754e19 100644 --- a/game/NonExportedEnums.h +++ b/game/NonExportedEnums.h @@ -133,11 +133,11 @@ enum CellTypes // Color of structures and units belonging to a given player enum PlayerColor { - PlayerBlue = 0, //Standard Eden color - PlayerRed, //Standard Plymouth color + PlayerBlue = 0, // Standard Eden color + PlayerRed, // Standard Plymouth color PlayerGreen, PlayerYellow, PlayerCyan, PlayerMagenta, - PlayerBlack //Not selectable as a player color from the multiplayer game initialization screen + PlayerBlack, // Not selectable as a player color from the multiplayer game initialization screen };