fix : 변수 네이밍 수정

This commit is contained in:
qornwh1
2026-03-16 11:27:07 +09:00
parent f2bc3d7924
commit f564199cb5

View File

@@ -453,8 +453,8 @@ public class GameServer : ServerBase
}
// 새로운 파티를 복사한다
PartyInfo newParty = new PartyInfo();
newParty.DeepCopySemi(preParty);
PartyInfo tempParty = new PartyInfo();
tempParty.DeepCopySemi(preParty);
// 최대 인원 체크
if (newChannel.UserCount + preParty.PartyMemberIds.Count >= newChannel.UserCountMax)
@@ -485,7 +485,7 @@ public class GameServer : ServerBase
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));
// 새로운 채널에 파티원 넣기
foreach (int memberId in newParty.PartyMemberIds)
foreach (int memberId in tempParty.PartyMemberIds)
{
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
@@ -536,7 +538,8 @@ public class GameServer : ServerBase
LeaderId = createdParty.LeaderId,
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
{