little refactor

This commit is contained in:
2016-12-11 13:32:21 +07:00
parent d74728b4df
commit 8cff61ae91
21 changed files with 1447 additions and 448 deletions

View File

@@ -562,7 +562,7 @@ namespace IsoTools {
_sectors.Capacity = count;
}
while ( _sectors.Count < _sectors.Capacity ) {
_sectors.Push(new Sector());
_sectors.Add(new Sector());
}
}
for ( int i = 0, e = _sectors.Count; i < e; ++i ) {
@@ -581,7 +581,7 @@ namespace IsoTools {
for ( var x = min.x; x < max.x; ++x ) {
var sector = FindSector(x, y);
if ( sector != null ) {
sector.objects.Push(iso_object);
sector.objects.Add(iso_object);
}
}}
}