mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-16 05:36:03 -05:00
Fix expected import size
This commit is contained in:
parent
0fbae15dd6
commit
3060e790bc
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user