Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -31,13 +31,13 @@ namespace Server
if (File.Exists("Data/Binary/Bounds.bin"))
{
using FileStream fs = new FileStream("Data/Binary/Bounds.bin", FileMode.Open, FileAccess.Read,
using var fs = new FileStream("Data/Binary/Bounds.bin", FileMode.Open, FileAccess.Read,
FileShare.Read);
BinaryReader bin = new BinaryReader(fs);
var bin = new BinaryReader(fs);
int count = Math.Min(Table.Length, (int)(fs.Length / 8));
var count = Math.Min(Table.Length, (int)(fs.Length / 8));
for (int i = 0; i < count; ++i)
for (var i = 0; i < count; ++i)
{
int xMin = bin.ReadInt16();
int yMin = bin.ReadInt16();
@ -50,9 +50,11 @@ namespace Server
bin.Close();
}
else
{
Console.WriteLine("Warning: Data/Binary/Bounds.bin does not exist");
}
}
public static Rectangle2D[] Table{ get; }
public static Rectangle2D[] Table { get; }
}
}
}