chore: Use var everywhere (#2294)
This commit is contained in:
parent
0b34cc4417
commit
ebaf104935
267 changed files with 873 additions and 873 deletions
|
|
@ -107,17 +107,17 @@ public abstract partial class BaseMulti : Item
|
|||
return false;
|
||||
}
|
||||
|
||||
int minX = Math.Max(bounds.X, Location.X + Components.Min.X);
|
||||
int maxX = Math.Min(bounds.X + bounds.Width, Location.X + Components.Max.X);
|
||||
int minY = Math.Max(bounds.Y, Location.Y + Components.Min.Y);
|
||||
int maxY = Math.Min(bounds.Y + bounds.Height, Location.Y + Components.Max.Y);
|
||||
var minX = Math.Max(bounds.X, Location.X + Components.Min.X);
|
||||
var maxX = Math.Min(bounds.X + bounds.Width, Location.X + Components.Max.X);
|
||||
var minY = Math.Max(bounds.Y, Location.Y + Components.Min.Y);
|
||||
var maxY = Math.Min(bounds.Y + bounds.Height, Location.Y + Components.Max.Y);
|
||||
|
||||
for (int x = minX; x <= maxX; x++)
|
||||
for (var x = minX; x <= maxX; x++)
|
||||
{
|
||||
for (int y = minY; y <= maxY; y++)
|
||||
for (var y = minY; y <= maxY; y++)
|
||||
{
|
||||
int offsetX = x - Location.X - Components.Min.X;
|
||||
int offsetY = y - Location.Y - Components.Min.Y;
|
||||
var offsetX = x - Location.X - Components.Min.X;
|
||||
var offsetY = y - Location.Y - Components.Min.Y;
|
||||
|
||||
if (offsetX < 0 || offsetY < 0 || offsetX >= Components.Width || offsetY >= Components.Height)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue