Broadcast refactor (#4264)
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
This commit is contained in:
@@ -410,10 +410,10 @@ void cEntityEffectHunger::OnTick(cPawn & a_Target)
|
||||
|
||||
void cEntityEffectInvisibility::BroadcastMetadata(cPawn & a_Target)
|
||||
{
|
||||
auto ParentChunk = a_Target.GetParentChunk();
|
||||
if (ParentChunk != nullptr)
|
||||
auto World = a_Target.GetWorld();
|
||||
if (World != nullptr)
|
||||
{
|
||||
ParentChunk->BroadcastEntityMetadata(a_Target);
|
||||
World->BroadcastEntityMetadata(a_Target);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user