diff --git a/OpenRA.Game/Graphics/Sheet.cs b/OpenRA.Game/Graphics/Sheet.cs index 2d72fe7c06..47c45b49f9 100644 --- a/OpenRA.Game/Graphics/Sheet.cs +++ b/OpenRA.Game/Graphics/Sheet.cs @@ -149,7 +149,7 @@ namespace OpenRA.Graphics var buffer = data; ReleaseBuffer(); - // We aren't commiting data to the GPU, so let's not delete our data. + // We aren't committing data to the GPU, so let's not delete our data. if (Game.Renderer == null) return false; diff --git a/OpenRA.Game/Primitives/RingBuffer.cs b/OpenRA.Game/Primitives/RingBuffer.cs index 2a1d70e0a6..5b05e524b8 100644 --- a/OpenRA.Game/Primitives/RingBuffer.cs +++ b/OpenRA.Game/Primitives/RingBuffer.cs @@ -14,7 +14,7 @@ using System.Collections.Generic; namespace OpenRA.Primitives { - /// Fixed size rorating buffer backed by an array. + /// Fixed size rotating buffer backed by an array. public class RingBuffer : ICollection, IEnumerable { readonly IComparer comparer; diff --git a/OpenRA.Game/Settings.cs b/OpenRA.Game/Settings.cs index 444f535ec8..3b55844258 100644 --- a/OpenRA.Game/Settings.cs +++ b/OpenRA.Game/Settings.cs @@ -119,7 +119,7 @@ namespace OpenRA [Desc("Can players vote to kick other players?")] public bool EnableVoteKick = true; - [Desc("After how much time in miliseconds should the vote kick fail after idling?")] + [Desc("After how much time in milliseconds should the vote kick fail after idling?")] public int VoteKickTimer = 30000; [Desc("If a vote kick was unsuccessful for how long should the player who started the vote not be able to start new votes?")] diff --git a/OpenRA.Game/Support/MersenneTwister.cs b/OpenRA.Game/Support/MersenneTwister.cs index 6329518b8c..2ad40fb033 100644 --- a/OpenRA.Game/Support/MersenneTwister.cs +++ b/OpenRA.Game/Support/MersenneTwister.cs @@ -126,7 +126,7 @@ namespace OpenRA.Support } /// - /// Shuffle a portion of a list list in place. Has minor biases. + /// Shuffle a portion of a list in place. Has minor biases. /// public void ShuffleInPlace(IList list, int start, int len) { diff --git a/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs b/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs index a493075cc6..6f5ea1be2b 100644 --- a/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs +++ b/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs @@ -110,7 +110,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders } } - // Keep a 1px empty border to work avoid rounding issues in the gpu shader. + // Keep a 1px empty border to work avoid rounding issues in the GPU shader. if (left > 0) left--; diff --git a/OpenRA.Mods.Cnc/Traits/Attack/AttackTesla.cs b/OpenRA.Mods.Cnc/Traits/Attack/AttackTesla.cs index 260aa41f2e..42124893b4 100644 --- a/OpenRA.Mods.Cnc/Traits/Attack/AttackTesla.cs +++ b/OpenRA.Mods.Cnc/Traits/Attack/AttackTesla.cs @@ -18,7 +18,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.Cnc.Traits { - [Desc("Implements the charge-then-burst attack logic specific to the RA tesla coil.")] + [Desc("Implements the charge-then-burst attack logic specific to the RA Tesla coil.")] sealed class AttackTeslaInfo : AttackBaseInfo { [Desc("How many charges this actor has to attack with, once charged.")] diff --git a/OpenRA.Mods.Common/Activities/PickupUnit.cs b/OpenRA.Mods.Common/Activities/PickupUnit.cs index b2a792dc2a..277152edfb 100644 --- a/OpenRA.Mods.Common/Activities/PickupUnit.cs +++ b/OpenRA.Mods.Common/Activities/PickupUnit.cs @@ -124,7 +124,7 @@ namespace OpenRA.Mods.Common.Activities if (!IsInterruptible) return; - // This nulls caryall storage, so to avoid deleting units make sure it is not called while carrying one. + // This nulls carryall storage, so to avoid deleting units make sure it is not called while carrying one. if (carryall.State == Carryall.CarryallState.Reserved) carryall.UnreserveCarryable(self); diff --git a/OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs b/OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs index 16161daebe..09c3b51cdf 100644 --- a/OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs +++ b/OpenRA.Mods.Common/MapGenerator/MatrixUtils.cs @@ -446,7 +446,7 @@ namespace OpenRA.Mods.Common.MapGenerator /// /// Apply a binomial filter-based blur to a matrix, returning a new matrix. The result is - /// somewhat similar to a gaussian blur. Maximum supported radius is MaxBinomialKernelRadius. + /// somewhat similar to a Gaussian blur. Maximum supported radius is MaxBinomialKernelRadius. /// public static Matrix BinomialBlur(Matrix input, int radius) { @@ -519,7 +519,7 @@ namespace OpenRA.Mods.Common.MapGenerator /// extended out. /// /// - /// Along with the blured matrix, the number of changes compared to the + /// Along with the blurred matrix, the number of changes compared to the /// original is returned. /// /// @@ -1106,7 +1106,7 @@ namespace OpenRA.Mods.Common.MapGenerator /// Each call only dilates thin regions by one cell's thickness on each border. /// /// - /// Only regions with a thickness less than width (in Chebychev distance) are considered. + /// Only regions with a thickness less than width (in Chebyshev distance) are considered. /// /// /// Returns the number of changes made. @@ -1256,7 +1256,7 @@ namespace OpenRA.Mods.Common.MapGenerator /// /// Traces a matrix of directions into a set of point sequences. Each point sequence is /// traced up to but excluding junction points. Paths are traced in both directions. The - /// paths in the direction map must be bidrectional and contain no stubs. + /// paths in the direction map must be bidirectional and contain no stubs. /// public static int2[][] DirectionMapToPaths(Matrix input) { diff --git a/OpenRA.Mods.Common/MapGenerator/TilingPath.cs b/OpenRA.Mods.Common/MapGenerator/TilingPath.cs index 153d596280..b495243239 100644 --- a/OpenRA.Mods.Common/MapGenerator/TilingPath.cs +++ b/OpenRA.Mods.Common/MapGenerator/TilingPath.cs @@ -196,7 +196,7 @@ namespace OpenRA.Mods.Common.MapGenerator public CPos[] Points; /// - /// Maximum permitted Chebychev distance that layed TemplateSegments may be from the + /// Maximum permitted Chebyshev distance that layed TemplateSegments may be from the /// specified points. /// public int MaxDeviation; @@ -339,7 +339,7 @@ namespace OpenRA.Mods.Common.MapGenerator // // Then, from the end node, it works backwards. It finds any (random) suitable template // segment which connects back to a previous node where the difference in cost is - // that of the template segment's cost, implying that that previous node is on an + // that of the template segment's cost, implying that the previous node is on an // optimal path towards the end node. This process repeats until the start node is // reached, painting templates along the way. // diff --git a/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs b/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs index f39a6e1f12..2911fe591d 100644 --- a/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs +++ b/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs @@ -641,7 +641,7 @@ namespace OpenRA.Mods.Common.Pathfinder /// Both this and must be true for a cell to be blocked. /// /// - /// This method is dependant on the logic in + /// This method is dependent on the logic in /// and /// . This method must be kept in sync with changes in the locomotor /// rules. diff --git a/OpenRA.Mods.Common/Traits/BotModules/BotModuleLogic/MinelayerBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/BotModuleLogic/MinelayerBotModule.cs index 933c4b9910..ec2627e929 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/BotModuleLogic/MinelayerBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/BotModuleLogic/MinelayerBotModule.cs @@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Traits public readonly BitSet AwayFromEnemyTargetTypes = default; [Desc("Minefield location check distance to AwayFromAlliedTargettype and AwayFromEnemyTargettype.", - "In addition, if any emeny actor within this range and minefield location is not cancelled,", + "In addition, if any enemy actor within this range and minefield location is not cancelled,", "minelayer will try lay mines at the 3/4 path to minefield location")] public readonly int AwayFromCellDistance = 9; diff --git a/OpenRA.Mods.Common/Traits/Conditions/GrantChargedConditionOnToggle.cs b/OpenRA.Mods.Common/Traits/Conditions/GrantChargedConditionOnToggle.cs index ec6c7de527..10edb4f62d 100644 --- a/OpenRA.Mods.Common/Traits/Conditions/GrantChargedConditionOnToggle.cs +++ b/OpenRA.Mods.Common/Traits/Conditions/GrantChargedConditionOnToggle.cs @@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Traits [Desc("The amount of charge that needs to be present to turn on the condition. " + "If set to -1, threshold is set to full charge. " + - "If activated without full charge " + nameof(ConditionDuration) + " is percentally smaller.")] + "If activated without full charge " + nameof(ConditionDuration) + " is proportionally smaller.")] public readonly int ChargeThreshhold = -1; [Desc("How long (in ticks) should the condition stay active?")] diff --git a/OpenRA.Mods.Common/Traits/Conditions/ProximityExternalCondition.cs b/OpenRA.Mods.Common/Traits/Conditions/ProximityExternalCondition.cs index 483b6d4e91..a93608f172 100644 --- a/OpenRA.Mods.Common/Traits/Conditions/ProximityExternalCondition.cs +++ b/OpenRA.Mods.Common/Traits/Conditions/ProximityExternalCondition.cs @@ -170,7 +170,7 @@ namespace OpenRA.Mods.Common.Traits if (IsTraitDisabled) return; - // Work around for actors changin owner within the region. + // Work around for actors changing owner within the region. if ((actor.CenterPosition - self.CenterPosition).HorizontalLengthSquared <= Info.Range.LengthSquared) { var hasRelationship = Info.ValidRelationships.HasRelationship(self.Owner.RelationshipWith(actor.Owner)); diff --git a/OpenRA.Mods.Common/Traits/DockClientManager.cs b/OpenRA.Mods.Common/Traits/DockClientManager.cs index ca1d17f671..880f5f15d2 100644 --- a/OpenRA.Mods.Common/Traits/DockClientManager.cs +++ b/OpenRA.Mods.Common/Traits/DockClientManager.cs @@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits } } - /// In addition returns true if reservation was succesful or we have already been reserved at . + /// In addition returns true if reservation was successful or we have already been reserved at . public bool ReserveHost(Actor hostActor, IDockHost host) { if (host == null) @@ -231,7 +231,7 @@ namespace OpenRA.Mods.Common.Traits return !IsTraitDisabled && dockClients.Any(client => client.CanDock(type, forceEnter)); } - /// Does this contain at least one enabled with maching . + /// Does this contain at least one enabled with matching . public bool CanDock(Actor target, bool forceEnter = false) { return !IsTraitDisabled && diff --git a/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs b/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs index 46d080e2de..e360247636 100644 --- a/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs +++ b/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs @@ -379,7 +379,7 @@ namespace OpenRA.Mods.Common.Traits if (buildableNames.Contains(Queue[i].Item)) continue; - // Refund spended resources + // Refund spent resources if (Queue[i].ResourcesPaid > 0) { playerResources.GiveResources(Queue[i].ResourcesPaid); diff --git a/OpenRA.Mods.Common/UpdateRules/Rules/20230225/RenameContrailWidth.cs b/OpenRA.Mods.Common/UpdateRules/Rules/20230225/RenameContrailWidth.cs index fc4907b502..b653c455ee 100644 --- a/OpenRA.Mods.Common/UpdateRules/Rules/20230225/RenameContrailWidth.cs +++ b/OpenRA.Mods.Common/UpdateRules/Rules/20230225/RenameContrailWidth.cs @@ -18,7 +18,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules { public override string Name => "Rename contrail width"; - public override string Description => "Rename contrail `TrailWidth` to `StartWidth` in traits and weapons to acount for added `EndWidth` functionality"; + public override string Description => "Rename contrail `TrailWidth` to `StartWidth` in traits and weapons to account for added `EndWidth` functionality"; public override IEnumerable UpdateActorNode(ModData modData, MiniYamlNodeBuilder actorNode) { diff --git a/OpenRA.Mods.Common/UpdateRules/Rules/20231010/RemoveParentTopParentLeftSubstitutions.cs b/OpenRA.Mods.Common/UpdateRules/Rules/20231010/RemoveParentTopParentLeftSubstitutions.cs index 0e3b0c1bc5..1590e2f38d 100644 --- a/OpenRA.Mods.Common/UpdateRules/Rules/20231010/RemoveParentTopParentLeftSubstitutions.cs +++ b/OpenRA.Mods.Common/UpdateRules/Rules/20231010/RemoveParentTopParentLeftSubstitutions.cs @@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules public override string Name => "Remove PARENT_TOP and PARENT_LEFT from integer expressions for widgets."; public override string Description => - "PARENT_TOP is replaced with 0 and PARENT_LEFT is replaced with 0 in integer expressions for width, hegiht and position."; + "PARENT_TOP is replaced with 0 and PARENT_LEFT is replaced with 0 in integer expressions for width, height and position."; public override IEnumerable UpdateChromeNode(ModData modData, MiniYamlNodeBuilder chromeNode) { diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ScriptErrorLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ScriptErrorLogic.cs index 6ded292c08..bfa5ca5ed7 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ScriptErrorLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ScriptErrorLogic.cs @@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic var luaScript = world.WorldActor.TraitOrDefault(); if (luaScript != null) { - // Native exceptions have OS-dependend line endings, so strip these away as WrapText doesn't handle them + // Native exceptions have OS-dependent line endings, so strip these away as WrapText doesn't handle them var errorMessage = luaScript.Context.ErrorMessage.Replace("\r\n", "\n"); var text = WidgetUtils.WrapText(errorMessage, label.Bounds.Width, font); diff --git a/OpenRA.Mods.Common/Widgets/Logic/Settings/GamePlaySettingsLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Settings/GamePlaySettingsLogic.cs index 9773e9d48d..f9b085e9db 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Settings/GamePlaySettingsLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Settings/GamePlaySettingsLogic.cs @@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic autoSaveIntervalDropDown.GetText = () => GetMessageForAutoSaveInterval(Game.Settings.SinglePlayerSettings.AutoSaveInterval); - // Setup dropdown for auto-save nr. + // Setup dropdown for auto-save number. var autoSaveNoDropDown = panel.Get("AUTO_SAVE_FILE_NUMBER_DROP_DOWN"); autoSaveNoDropDown.OnMouseDown = _ => diff --git a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs index daa9609cd0..71e7c69ad7 100644 --- a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs @@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Widgets /* The block below does three things: // 1. Allows actor selection using a selection box regardless of input mode. // 2. Allows actor deselection with a single click in the default input mode (UnitOrderGenerator). - // 3. Prevents units from getting deselected when exiting input modes (eg. AttackMove or Guard). + // 3. Prevents units from getting deselected when exiting input modes (e.g. AttackMove or Guard). // // We cannot check for UnitOrderGenerator here since it's the default order generator that gets activated in // World.CancelInputMode. If we did check it, actor de-selection would not be possible by just clicking somewhere,