fix : 변수 네이밍 수정
This commit is contained in:
@@ -453,8 +453,8 @@ public class GameServer : ServerBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 새로운 파티를 복사한다
|
// 새로운 파티를 복사한다
|
||||||
PartyInfo newParty = new PartyInfo();
|
PartyInfo tempParty = new PartyInfo();
|
||||||
newParty.DeepCopySemi(preParty);
|
tempParty.DeepCopySemi(preParty);
|
||||||
|
|
||||||
// 최대 인원 체크
|
// 최대 인원 체크
|
||||||
if (newChannel.UserCount + preParty.PartyMemberIds.Count >= newChannel.UserCountMax)
|
if (newChannel.UserCount + preParty.PartyMemberIds.Count >= newChannel.UserCountMax)
|
||||||
@@ -485,7 +485,7 @@ public class GameServer : ServerBase
|
|||||||
preChannel.RemoveUser(memberId);
|
preChannel.RemoveUser(memberId);
|
||||||
|
|
||||||
// 현재 존재하는 파티원만 추가한다.
|
// 현재 존재하는 파티원만 추가한다.
|
||||||
newParty.PartyMemberIds.Add(memberId);
|
tempParty.PartyMemberIds.Add(memberId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -502,7 +502,7 @@ public class GameServer : ServerBase
|
|||||||
BroadcastToChannel(preChannelId, PacketSerializer.Serialize<UpdatePartyPacket>((ushort)PacketCode.UPDATE_PARTY, notify));
|
BroadcastToChannel(preChannelId, PacketSerializer.Serialize<UpdatePartyPacket>((ushort)PacketCode.UPDATE_PARTY, notify));
|
||||||
|
|
||||||
// 새로운 채널에 파티원 넣기
|
// 새로운 채널에 파티원 넣기
|
||||||
foreach (int memberId in newParty.PartyMemberIds)
|
foreach (int memberId in tempParty.PartyMemberIds)
|
||||||
{
|
{
|
||||||
sessions.TryGetValue(memberId, out NetPeer? memberPeer);
|
sessions.TryGetValue(memberId, out NetPeer? memberPeer);
|
||||||
|
|
||||||
@@ -526,7 +526,9 @@ public class GameServer : ServerBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 새로운 채널에 파티를 추가한다.
|
// 새로운 채널에 파티를 추가한다.
|
||||||
if (newChannel.GetPartyManager().CreateParty(newParty.LeaderId, newParty.PartyName, out PartyInfo? createdParty, newParty.PartyMemberIds) && createdParty != null)
|
if (newChannel.GetPartyManager()
|
||||||
|
.CreateParty(tempParty.LeaderId, tempParty.PartyName, out PartyInfo? createdParty, tempParty.PartyMemberIds) &&
|
||||||
|
createdParty != null)
|
||||||
{
|
{
|
||||||
// 새 채널 기존 유저들에게 파티 생성 알림
|
// 새 채널 기존 유저들에게 파티 생성 알림
|
||||||
UpdatePartyPacket createNotify = new UpdatePartyPacket
|
UpdatePartyPacket createNotify = new UpdatePartyPacket
|
||||||
@@ -536,7 +538,8 @@ public class GameServer : ServerBase
|
|||||||
LeaderId = createdParty.LeaderId,
|
LeaderId = createdParty.LeaderId,
|
||||||
PartyName = createdParty.PartyName,
|
PartyName = createdParty.PartyName,
|
||||||
};
|
};
|
||||||
BroadcastToChannel(packet.ChannelId, PacketSerializer.Serialize<UpdatePartyPacket>((ushort)PacketCode.UPDATE_PARTY, createNotify));
|
BroadcastToChannel(packet.ChannelId,
|
||||||
|
PacketSerializer.Serialize<UpdatePartyPacket>((ushort)PacketCode.UPDATE_PARTY, createNotify));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user