mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	Merge pull request #567 Address solo activity team sizes
Activities that would now force players into teams no longer make teams of size 1.
This commit is contained in:
		| @@ -487,7 +487,10 @@ void ActivityInstance::StartZone() { | |||||||
| 	    return; | 	    return; | ||||||
|  |  | ||||||
| 	auto* leader = participants[0]; | 	auto* leader = participants[0]; | ||||||
|  | 	LWOZONEID zoneId = LWOZONEID(m_ActivityInfo.instanceMapID, 0, leader->GetCharacter()->GetPropertyCloneID()); | ||||||
|  |  | ||||||
|  | 	// only make a team if we have more than one participant | ||||||
|  | 	if (participants.size() > 1){ | ||||||
| 		CBITSTREAM; | 		CBITSTREAM; | ||||||
| 		PacketUtils::WriteHeader(bitStream, CHAT_INTERNAL, MSG_CHAT_INTERNAL_CREATE_TEAM); | 		PacketUtils::WriteHeader(bitStream, CHAT_INTERNAL, MSG_CHAT_INTERNAL_CREATE_TEAM); | ||||||
|  |  | ||||||
| @@ -498,11 +501,10 @@ void ActivityInstance::StartZone() { | |||||||
| 			bitStream.Write(participant); | 			bitStream.Write(participant); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 	LWOZONEID zoneId = LWOZONEID(m_ActivityInfo.instanceMapID, 0, leader->GetCharacter()->GetPropertyCloneID()); |  | ||||||
|  |  | ||||||
| 		bitStream.Write(zoneId); | 		bitStream.Write(zoneId); | ||||||
|  |  | ||||||
| 		Game::chatServer->Send(&bitStream, SYSTEM_PRIORITY, RELIABLE, 0, Game::chatSysAddr, false); | 		Game::chatServer->Send(&bitStream, SYSTEM_PRIORITY, RELIABLE, 0, Game::chatSysAddr, false); | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	const auto cloneId = GeneralUtils::GenerateRandomNumber<uint32_t>(1, UINT32_MAX); | 	const auto cloneId = GeneralUtils::GenerateRandomNumber<uint32_t>(1, UINT32_MAX); | ||||||
| 	for (Entity* player : participants) { | 	for (Entity* player : participants) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz