Fix map data hopefully.

This commit is contained in:
SilicaAndPina 2021-02-24 09:52:36 +13:00
parent b80984b92e
commit 83e274c828
7 changed files with 170 additions and 144 deletions

View file

@ -107,7 +107,7 @@ namespace HISP.Game
Logger.ErrorPrint("Map file not found.");
return;
}
Logger.InfoPrint("Loading Map Data (" + ConfigReader.MapFile + ")");
byte[] worldMap = File.ReadAllBytes(ConfigReader.MapFile);
@ -118,7 +118,6 @@ namespace HISP.Game
oMapData = new byte[Width * Height];
int ii = 8;
for (int i = 0; i < MapData.Length; i++)
{
oMapData[i] = worldMap[ii];
@ -127,6 +126,7 @@ namespace HISP.Game
}
worldMap = null;
Logger.InfoPrint("Map Data Loaded!");
}
}