mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-09 06:35:42 +12:00
Fix error
This commit is contained in:
parent
2088b1423a
commit
cb435349d8
1 changed files with 2 additions and 2 deletions
|
@ -3644,14 +3644,14 @@ namespace HISP.Server
|
||||||
|
|
||||||
|
|
||||||
// Tell other clients you exist
|
// Tell other clients you exist
|
||||||
byte[] PlayerInfo = PacketBuilder.CreatePlayerInfoUpdateOrCreate(sender.LoggedinUser.X, sender.LoggedinUser.Y, sender.LoggedinUser.Facing, sender.LoggedinUser.CharacterId, sender.LoggedinUser.Username);
|
byte[] YourPlayerInfo = PacketBuilder.CreatePlayerInfoUpdateOrCreate(sender.LoggedinUser.X, sender.LoggedinUser.Y, sender.LoggedinUser.Facing, sender.LoggedinUser.CharacterId, sender.LoggedinUser.Username);
|
||||||
foreach (GameClient client in ConnectedClients)
|
foreach (GameClient client in ConnectedClients)
|
||||||
{
|
{
|
||||||
if (client.LoggedIn)
|
if (client.LoggedIn)
|
||||||
{
|
{
|
||||||
if (client.LoggedinUser.Id != sender.LoggedinUser.Id)
|
if (client.LoggedinUser.Id != sender.LoggedinUser.Id)
|
||||||
{
|
{
|
||||||
client.SendPacket(PlayerInfo);
|
client.SendPacket(YourPlayerInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue