Fix expected import size

This commit is contained in:
Kurt 2020-04-12 21:28:51 -07:00
parent 0fbae15dd6
commit 3060e790bc
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ private void B_ImportAllAcres_Click(object sender, EventArgs e)
var path = ofd.FileName;
var fi = new FileInfo(path);
int expect = layer.AcreTileCount * FieldItem.SIZE;
int expect = layer.MapTileCount * FieldItem.SIZE;
if (fi.Length != expect)
{
WinFormsUtil.Error($"Expected size (0x{expect:X}) != Input size (0x{fi.Length:X}", path);

View File

@ -292,7 +292,7 @@ private void B_ImportAllAcres_Click(object sender, EventArgs e)
var path = ofd.FileName;
var fi = new FileInfo(path);
int expect = Terrain.AcreTileCount * TerrainTile.SIZE;
int expect = Terrain.MapTileCount * TerrainTile.SIZE;
if (fi.Length != expect)
{
WinFormsUtil.Error($"Expected size (0x{expect:X}) != Input size (0x{fi.Length:X}", path);