mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 12:41:55 +00:00 
			
		
		
		
	fix: Constructing player to themself (#1808)
tested that I can see other players leave and join a world and that i no longer see a white screen when loading between worlds
This commit is contained in:
		| @@ -364,6 +364,8 @@ void EntityManager::ConstructEntity(Entity* entity, const SystemAddress& sysAddr | ||||
|  | ||||
| 	if (sysAddr == UNASSIGNED_SYSTEM_ADDRESS) { | ||||
| 		for (auto* player : PlayerManager::GetAllPlayers()) { | ||||
| 			// Don't need to construct the player to themselves  | ||||
| 			if (entity->GetObjectID() == player->GetObjectID()) continue; | ||||
| 			if (player->GetPlayerReadyForUpdates()) { | ||||
| 				Game::server->Send(stream, player->GetSystemAddress(), false); | ||||
| 			} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz