diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-12 09:14:06 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-12 09:14:06 +0200 |
commit | fe3712284ebf1661a9c536dd51e32f757b66aba3 (patch) | |
tree | 90dec2ce1c58c781d3e06ad88f320d1d07e8d7cb /source/Chunk.cpp | |
parent | ProtectionAreas: Added a license file. (diff) | |
download | cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.gz cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.bz2 cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.lz cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.xz cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.tar.zst cuberite-fe3712284ebf1661a9c536dd51e32f757b66aba3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 3cebe7d5c..c2afb9d5c 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -1705,7 +1705,7 @@ void cChunk::CollectPickupsByPlayer(cPlayer * a_Player) -void cChunk::UpdateSign(int a_PosX, int a_PosY, int a_PosZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4) +bool cChunk::SetSignLines(int a_PosX, int a_PosY, int a_PosZ, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4) { // Also sends update packets to all clients in the chunk for (cBlockEntityList::iterator itr = m_BlockEntities.begin(); itr != m_BlockEntities.end(); ++itr) @@ -1723,8 +1723,10 @@ void cChunk::UpdateSign(int a_PosX, int a_PosY, int a_PosZ, const AString & a_Li MarkDirty(); (reinterpret_cast<cSignEntity *>(*itr))->SetLines(a_Line1, a_Line2, a_Line3, a_Line4); m_World->BroadcastBlockEntity(a_PosX, a_PosY, a_PosZ); + return true; } } // for itr - m_BlockEntities[] + return false; } |