mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Fix map data hopefully.
This commit is contained in:
parent
b80984b92e
commit
83e274c828
7 changed files with 170 additions and 144 deletions
|
@ -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!");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue