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