Fix IDE0055
This rule no longer appears to be buggy, so enforce it. Some of the automated fixes are adjusted in order to improve the result. #pragma directives have no option to control indentation, so remove them where possible.
This commit is contained in:
committed by
Pavel Penev
parent
60cbf79c9b
commit
360f24f609
@@ -40,15 +40,15 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
|
||||
if (frames <= 1) // TODO: find a better way to differentiate .shp icons
|
||||
return false;
|
||||
|
||||
/* var x = */ s.ReadUInt16();
|
||||
/* var y = */ s.ReadUInt16();
|
||||
s.ReadUInt16(); // x
|
||||
s.ReadUInt16(); // y
|
||||
var width = s.ReadUInt16();
|
||||
var height = s.ReadUInt16();
|
||||
|
||||
if (width <= 0 || height <= 0)
|
||||
return false;
|
||||
|
||||
/*var delta = */ s.ReadUInt16(); /* + 37;*/
|
||||
s.ReadUInt16(); // delta (+37)
|
||||
|
||||
var flags = s.ReadUInt16();
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
|
||||
|
||||
if (flags == 1)
|
||||
{
|
||||
/* var palette = */ s.ReadBytes(768);
|
||||
s.ReadBytes(768); // palette
|
||||
for (var i = 0; i < offsets.Length; i++)
|
||||
offsets[i] += 768;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user