Fix: password support

This commit is contained in:
2020-03-27 15:59:53 +08:00
parent d80cc90355
commit 345df1ee90
+1
View File
@@ -32,6 +32,7 @@ func (h *Hall) CreateRoom(userID int, roomName string, passwd string) int {
if !h.hasRoom(i) {
room := NewRoom(rule.NewJinzhouRule())
room.Start()
room.password = passwd
room.playerCount = 1
h.rooms[i] = room
h.players[userID] = i