From f6da891aca12ff1e05f8883b067aa11b63b91ca4 Mon Sep 17 00:00:00 2001 From: zhouwei <849588297@qq.com> Date: Fri, 6 Mar 2026 11:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=8E=9F=E7=BA=A2=E4=B8=AD?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=20=E4=B8=8D=E5=8A=A0=E9=94=81=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/extend/mj/EXRoom.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/majiang/hongzhong/game_mj_hz/src/main/java/extend/mj/EXRoom.java b/majiang/hongzhong/game_mj_hz/src/main/java/extend/mj/EXRoom.java index fc88680..febeb8f 100644 --- a/majiang/hongzhong/game_mj_hz/src/main/java/extend/mj/EXRoom.java +++ b/majiang/hongzhong/game_mj_hz/src/main/java/extend/mj/EXRoom.java @@ -42,8 +42,6 @@ public class EXRoom extends Room { public int fengdingScore = 0; - private boolean closeWinCallBack = false; - public EXRoom(String roomid, Map redis_room_map) { super(roomid, redis_room_map); card = new RoomCard(this); @@ -594,13 +592,9 @@ public class EXRoom extends Room { } public void winCallback(EXPlayer owner, int card) { - if (closeWinCallBack) - return; - boolean qiangkong_niao = config.getBoolean(Config.ROOM_CONFIG_QIANGKONG_NIAO); if (this.winCount >= this.actionList.size()) { - closeWinCallBack = true; if (actionList.size() > 1) { this.bankerSeat = this.activeSeat; if (owner.winType == 1 && qiangkong_niao) @@ -616,7 +610,6 @@ public class EXRoom extends Room { } this.endGame(); - closeWinCallBack = false; } } @@ -665,7 +658,7 @@ public class EXRoom extends Room { // saveMilitaryRound(playBackData.getData()); // boolean total = this.round >= this.maxRound; // if(this.entrusResultType ==EXRoom.ENTRUST_CURREN_RESULT) { -// for (Entry entry : this.playerMapById.entrySet()) { +// for (Entry entry : this.playerMapById.entrySet()) { // if(entry.getValue().isEntrust()) { // total = true; // break; @@ -679,8 +672,8 @@ public class EXRoom extends Room { // } // this.stateMachine.changeState(Global.getState(EXRoomRoundSettleState.class)); // this.winCount = 0; -// -// +// +// // if (total) { // this.stateMachine.changeState(Global.getState(RoomDestoryGameState.class)); // return; @@ -701,11 +694,9 @@ public class EXRoom extends Room { public void clear() { super.clear(); this.liuju = false; - this.closeWinCallBack = false; this.activeSeat = this.lastDiscardSeat = this.currenDiscardSeat = 0; this.winCount = this.piaoNiaoCount = 0; this.niao.clear(); - this.actionList.clear(); } }