Fixes mono builds. (#16)

This commit is contained in:
Kamron Batman 2019-03-03 15:49:10 -08:00 • committed by GitHub
parent 90ffe0ea3c
commit 1c8f044476
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 30 deletions

View file

@ -388,11 +388,7 @@ namespace Server
fixed (StaticTile* pTiles = staTiles)
{
#if !MONO
NativeReader.Read(DataStream.SafeFileHandle.DangerousGetHandle(), pTiles, length);
#else
NativeReader.Read( m_Statics.Handle, pTiles, length );
#endif
if (m_Lists == null)
{
m_Lists = new TileList[8][];
@ -463,11 +459,7 @@ namespace Server
fixed (LandTile* pTiles = tiles)
{
#if !MONO
NativeReader.Read(MapStream.SafeFileHandle.DangerousGetHandle(), pTiles, 192);
#else
NativeReader.Read( m_Map.Handle, pTiles, 192 );
#endif
}
return tiles;
@ -718,9 +710,9 @@ namespace Server
if (y == null)
return -1;
return x.m_Offset.CompareTo(y.m_Offset);
}
}
}
}
}