收到房间数据后不再判断slot信息是否改变,全量推送
This commit is contained in:
parent
34fccd457a
commit
7ed40210fd
@ -331,7 +331,6 @@ namespace AxibugEmuOnline.Client.Manager
|
|||||||
Eventer.Instance.PostEvent(EEvent.OnOtherPlayerJoinRoom, newJoin);
|
Eventer.Instance.PostEvent(EEvent.OnOtherPlayerJoinRoom, newJoin);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool bChangeSlot = false;
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
var oldSlot = oldslotArr[i];
|
var oldSlot = oldslotArr[i];
|
||||||
@ -344,7 +343,6 @@ namespace AxibugEmuOnline.Client.Manager
|
|||||||
oldSlot.PlayerLocalJoyIdx != newSlot.PlayerLocalJoyIdx
|
oldSlot.PlayerLocalJoyIdx != newSlot.PlayerLocalJoyIdx
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
bChangeSlot = true;
|
|
||||||
if (newSlot.PlayerUID > 0)
|
if (newSlot.PlayerUID > 0)
|
||||||
{
|
{
|
||||||
OverlayManager.PopTip($"[{newSlot.PlayerNickName}]使用:P{i}");
|
OverlayManager.PopTip($"[{newSlot.PlayerNickName}]使用:P{i}");
|
||||||
@ -352,10 +350,8 @@ namespace AxibugEmuOnline.Client.Manager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bChangeSlot)
|
|
||||||
{
|
|
||||||
Eventer.Instance.PostEvent(EEvent.OnRoomSlotDataChanged);
|
Eventer.Instance.PostEvent(EEvent.OnRoomSlotDataChanged);
|
||||||
}
|
|
||||||
|
|
||||||
//for (int i = 0; i < 4; i++)
|
//for (int i = 0; i < 4; i++)
|
||||||
//{
|
//{
|
||||||
|
Loading…
Reference in New Issue
Block a user