tilematrix thread-safety

main waithandle timeout removed
basecreature typo
This commit is contained in:
Mark Sturgill 2013-10-13 22:12:18 -07:00
parent b3831721d9
commit 855b6463ca
5 changed files with 83 additions and 53 deletions

View file

@ -933,12 +933,15 @@ namespace Server
}
}
private object tileLock = new object();
public TileMatrix Tiles
{
get
{
if ( m_Tiles == null )
m_Tiles = new TileMatrix( this, m_FileIndex, m_MapID, m_Width, m_Height );
lock (tileLock)
if ( m_Tiles == null )
m_Tiles = new TileMatrix( this, m_FileIndex, m_MapID, m_Width, m_Height );
return m_Tiles;
}