Hopeless attempts to fix network bugs

This commit is contained in:
Tleety
2016-02-12 05:17:09 +01:00
parent 787eecce26
commit a8a3366e8a
5 changed files with 35 additions and 21 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ void Server::addChildrenToPacket(Packet & packet, EntityID entityID)
{
// HACK: Only sync players for now, since the map turned out to be TOO LARGE to send in one snapshot and Simon's computer shits itself
EntityWrapper entity(m_World, entityID);
if (entityID != EntityID_Invalid && !shouldSendToClient(entity)) {
if (!entity.Valid() || !shouldSendToClient(entity)) {
return;
}