|
@@ -67,7 +67,7 @@ func (room_info *RoomInfoWrapper) updateRoleStep(role_id string, step int32) {
|
|
// 是否结束游戏
|
|
// 是否结束游戏
|
|
func (room_info *RoomInfoWrapper) IsOverGame() bool {
|
|
func (room_info *RoomInfoWrapper) IsOverGame() bool {
|
|
colors := room_info.Colors
|
|
colors := room_info.Colors
|
|
- if len(colors) == 1 { //说明就剩下一个人了
|
|
|
|
|
|
+ if len(room_info.getNotKickColors()) == 1 { //说明就剩下一个人了
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
count := 0
|
|
count := 0
|