|
@@ -153,9 +153,9 @@ public class RoomService {
|
|
|
public Room creatRoom(Player player, int roomType) {
|
|
|
// 从对象池获取房间
|
|
|
Room room = this.acquireRoom(roomType);
|
|
|
- int roomId = this.randomRoomId();
|
|
|
+// int roomId = this.randomRoomId();
|
|
|
// 初始化房间
|
|
|
- room.init(player, roomId);
|
|
|
+ room.init(player, roomType);
|
|
|
// 加入管理映射
|
|
|
this.roomMap.put(room.roomId, room);
|
|
|
return room;
|