fix: user data changes not cleared
This commit is contained in:
@@ -17,6 +17,7 @@ internal class RoomListHandler: IHandler
|
|||||||
{
|
{
|
||||||
var roomCount = reader.ReadUShort();
|
var roomCount = reader.ReadUShort();
|
||||||
var roomList = new RagonRoomInformation[roomCount];
|
var roomList = new RagonRoomInformation[roomCount];
|
||||||
|
|
||||||
for (int i = 0; i < roomCount; i++)
|
for (int i = 0; i < roomCount; i++)
|
||||||
{
|
{
|
||||||
var id = reader.ReadString();
|
var id = reader.ReadString();
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ namespace Ragon.Client
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_changesCache.Clear();
|
||||||
_localChanges.Clear();
|
_localChanges.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ public class RagonLobbyDispatcher
|
|||||||
{
|
{
|
||||||
writer.Clear();
|
writer.Clear();
|
||||||
writer.WriteOperation(RagonOperation.ROOM_LIST_UPDATED);
|
writer.WriteOperation(RagonOperation.ROOM_LIST_UPDATED);
|
||||||
|
|
||||||
var rooms = _lobby.Rooms;
|
var rooms = _lobby.Rooms;
|
||||||
|
|
||||||
if (projectId > 0)
|
if (projectId > 0)
|
||||||
{
|
{
|
||||||
rooms = rooms.Where(r => r.ProjectId == projectId).ToList();
|
rooms = rooms.Where(r => r.ProjectId == projectId).ToList();
|
||||||
|
|||||||
@@ -148,8 +148,7 @@ public class RagonRoom : IRagonRoom, IRagonAction
|
|||||||
RagonTarget targetMode
|
RagonTarget targetMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner &&
|
if (eventMode == RagonReplicationMode.Buffered && targetMode != RagonTarget.Owner && _bufferedEvents.Count < _limitBufferedEvents)
|
||||||
_bufferedEvents.Count < _limitBufferedEvents)
|
|
||||||
{
|
{
|
||||||
_bufferedEvents.Add(evnt);
|
_bufferedEvents.Add(evnt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user