1
0

Redstone fixes and improvements [SEE DESC]

Haha, see desc.

* Improved redstone speed through a marking dirty system. Only a select
few devices are still continuously simulated
* Fixed redstone crashing with recent piston changes
This commit is contained in:
Tiger Wang
2014-06-04 23:23:09 +01:00
parent c11488ccd7
commit 22236a103a
3 changed files with 96 additions and 61 deletions

View File

@@ -1514,6 +1514,7 @@ void cChunk::FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockT
}
MarkDirty();
m_IsRedstoneDirty = true;
m_ChunkData.SetBlock(a_RelX, a_RelY, a_RelZ, a_BlockType);