MCPcopy Create free account
hub / github.com/cuberite/cuberite / BroadcastTimeUpdate

Method BroadcastTimeUpdate

src/World.cpp:2131–2143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2129
2130
2131void cWorld::BroadcastTimeUpdate(const cClientHandle * a_Exclude)
2132{
2133 cCSLock Lock(m_CSPlayers);
2134 for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
2135 {
2136 cClientHandle * ch = (*itr)->GetClientHandle();
2137 if ((ch == a_Exclude) || (ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed())
2138 {
2139 continue;
2140 }
2141 ch->SendTimeUpdate(m_WorldAge, m_TimeOfDay);
2142 }
2143}
2144
2145
2146

Callers

nothing calls this directly

Calls 6

beginMethod · 0.80
endMethod · 0.80
GetClientHandleMethod · 0.80
IsLoggedInMethod · 0.80
IsDestroyedMethod · 0.45
SendTimeUpdateMethod · 0.45

Tested by

no test coverage detected