From 7694d0842b9616584e3c4258dcb2625f45d5fe0b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 20 Feb 2021 15:41:16 +0000 Subject: [PATCH] Fix two outdated comments. --- OpenRA.Game/Graphics/Util.cs | 2 +- OpenRA.Mods.Common/Traits/World/ResourceRenderer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Graphics/Util.cs b/OpenRA.Game/Graphics/Util.cs index 011d4fe96d..74a626818f 100644 --- a/OpenRA.Game/Graphics/Util.cs +++ b/OpenRA.Game/Graphics/Util.cs @@ -38,7 +38,7 @@ namespace OpenRA.Graphics float sr = 0; float sb = 0; - // See shp.vert for documentation on the channel attribute format + // See combined.vert for documentation on the channel attribute format var attribC = r.Channel == TextureChannel.RGBA ? 0x02 : ((byte)r.Channel) << 1 | 0x01; attribC |= samplers.X << 6; var ss = r as SpriteWithSecondaryData; diff --git a/OpenRA.Mods.Common/Traits/World/ResourceRenderer.cs b/OpenRA.Mods.Common/Traits/World/ResourceRenderer.cs index c5fc14630a..e396bbabf2 100644 --- a/OpenRA.Mods.Common/Traits/World/ResourceRenderer.cs +++ b/OpenRA.Mods.Common/Traits/World/ResourceRenderer.cs @@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.Traits } } - // All resources must share a sheet and blend mode + // All resources must share a blend mode var sprites = r.Value.Variants.Values.SelectMany(v => Exts.MakeArray(v.Length, x => v.GetSprite(x))); if (sprites.Any(s => s.BlendMode != spriteLayer.BlendMode)) throw new InvalidDataException("Resource sprites specify different blend modes. "