mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-04 16:42:56 -06:00
Moved retroactive flag check to Character.cpp
This commit is contained in:
@@ -1042,11 +1042,8 @@ void HandlePacket(Packet* packet) {
|
||||
EntityManager::Instance()->ConstructAllEntities(packet->systemAddress);
|
||||
|
||||
player->GetComponent<CharacterComponent>()->SetLastRocketConfig(u"");
|
||||
// Retroactive check for if player has joined a faction to set their 'joined a faction' flag to true.
|
||||
if (c->GetPlayerFlag(ePlayerFlags::VENTURE_FACTION) || c->GetPlayerFlag(ePlayerFlags::ASSEMBLY_FACTION) ||
|
||||
c->GetPlayerFlag(ePlayerFlags::PARADOX_FACTION) || c->GetPlayerFlag(ePlayerFlags::SENTINEL_FACTION)) {
|
||||
c->SetPlayerFlag(ePlayerFlags::JOINED_A_FACTION, true);
|
||||
}
|
||||
|
||||
c->SetRetroactiveFlags();
|
||||
|
||||
player->GetCharacter()->SetTargetScene("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user