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

@ -95,11 +95,7 @@ namespace Server
fixed (LandTile* pTiles = tiles)
{
#if !MONO
NativeReader.Read(fsData.SafeFileHandle.DangerousGetHandle(), pTiles, 192);
#else
NativeReader.Read( fsData.Handle, pTiles, 192 );
#endif
}
matrix.SetLandBlock(x, y, tiles);
@ -163,11 +159,7 @@ namespace Server
fixed (StaticTile* pTiles = staTiles)
{
#if !MONO
NativeReader.Read(fsData.SafeFileHandle.DangerousGetHandle(), pTiles, length);
#else
NativeReader.Read( fsData.Handle, pTiles, length );
#endif
StaticTile* pCur = pTiles, pEnd = pTiles + tileCount;
while (pCur < pEnd)
@ -199,4 +191,4 @@ namespace Server
}
}
}
}
}