To clarify a bit, mono incorrectly increments the pointer 4 bytes when using *somePtr++, when it should increment the pointer the 3 or 7 bytes in the case of Tile/StaticTile. Using somePtr = somePtr + 1 works flawlessly.

This commit is contained in:
mark 2007-09-07 19:50:35 +00:00
parent 8857be1d27
commit 9e13975aed
4 changed files with 870 additions and 625 deletions

View file

@ -19,13 +19,13 @@
***************************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using Server;
@ -269,7 +269,7 @@ namespace Server
private delegate bool ConsoleEventHandler( ConsoleEventType type );
private static ConsoleEventHandler m_ConsoleEventHandler;
[System.Runtime.InteropServices.DllImport( "Kernel32.dll" )]
[DllImport( "Kernel32" )]
private static extern bool SetConsoleCtrlHandler( ConsoleEventHandler callback, bool add );
private static bool OnConsoleEvent( ConsoleEventType type )