mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-24 09:56:29 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -183,7 +183,7 @@ void PlayerChunkMap::PlayerChunk::prioritiseTileChanges()
|
||||
|
||||
void PlayerChunkMap::PlayerChunk::broadcast(std::shared_ptr<Packet> packet)
|
||||
{
|
||||
vector< std::shared_ptr<ServerPlayer> > sentTo;
|
||||
std::vector< std::shared_ptr<ServerPlayer> > sentTo;
|
||||
for (unsigned int i = 0; i < players.size(); i++)
|
||||
{
|
||||
std::shared_ptr<ServerPlayer> player = players[i];
|
||||
@@ -330,7 +330,7 @@ bool PlayerChunkMap::PlayerChunk::broadcastChanges(bool allowRegionUpdate)
|
||||
if( ys > 256 ) ys = 256;
|
||||
|
||||
broadcast( std::shared_ptr<BlockRegionUpdatePacket>( new BlockRegionUpdatePacket(xp, yp, zp, xs, ys, zs, level) ) );
|
||||
vector<std::shared_ptr<TileEntity> > *tes = level->getTileEntitiesInRegion(xp, yp, zp, xp + xs, yp + ys, zp + zs);
|
||||
std::vector<std::shared_ptr<TileEntity> > *tes = level->getTileEntitiesInRegion(xp, yp, zp, xp + xs, yp + ys, zp + zs);
|
||||
for (unsigned int i = 0; i < tes->size(); i++)
|
||||
{
|
||||
broadcast(tes->at(i));
|
||||
|
||||
Reference in New Issue
Block a user