|
@@ -203,6 +203,9 @@ public class ZDRoom extends Room {
|
|
|
}
|
|
|
break;
|
|
|
case 1:
|
|
|
+
|
|
|
+ RedisUtil.set("roomGambit:"+this.data.roomId, "0");
|
|
|
+
|
|
|
|
|
|
if (!this.flag) {
|
|
|
|
|
@@ -269,6 +272,14 @@ public class ZDRoom extends Room {
|
|
|
this.flag = false;
|
|
|
this.time = 0;
|
|
|
} else {
|
|
|
+
|
|
|
+
|
|
|
+ try {
|
|
|
+ Thread.sleep(2000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
for (Player tmPlayer : this.actors.values()) {
|
|
|
if (tmPlayer != null) {
|
|
@@ -290,6 +301,14 @@ public class ZDRoom extends Room {
|
|
|
this.flag = false;
|
|
|
this.time = 0;
|
|
|
} else {
|
|
|
+
|
|
|
+
|
|
|
+ try {
|
|
|
+ Thread.sleep(2000);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
for (Player tmPlayer : this.actors.values()) {
|
|
|
if (tmPlayer != null) {
|
|
@@ -301,6 +320,8 @@ public class ZDRoom extends Room {
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -321,6 +342,7 @@ public class ZDRoom extends Room {
|
|
|
return;
|
|
|
}
|
|
|
break;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
this.time += 1;
|
|
@@ -1393,7 +1415,7 @@ public class ZDRoom extends Room {
|
|
|
tmPlayer.receive(CommonProto.Cmd.GameStateChange_VALUE, data);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ RedisUtil.del("roomGambit:"+this.data.roomId);
|
|
|
Log.info("牌局结算...roomId={}, {}", this.data.roomId, builder.toString());
|
|
|
|
|
|
|