Commit 675b9cc7 authored by nanahira's avatar nanahira

fix

parent 21d63ddc
Pipeline #37831 failed with stages
in 3 minutes and 52 seconds
...@@ -1367,7 +1367,6 @@ class Room ...@@ -1367,7 +1367,6 @@ class Room
for i in [0...firstSeed.length] for i in [0...firstSeed.length]
firstSeedBuf.writeUInt32LE(firstSeed[i], i * 4) firstSeedBuf.writeUInt32LE(firstSeed[i], i * 4)
param.push(firstSeedBuf.toString('base64')) param.push(firstSeedBuf.toString('base64'))
console.log(firstSeed, firstSeedBuf.toString('base64'))
try try
@process = spawn './ygopro', param, {cwd: 'ygopro'} @process = spawn './ygopro', param, {cwd: 'ygopro'}
......
...@@ -1777,7 +1777,6 @@ ...@@ -1777,7 +1777,6 @@
firstSeedBuf.writeUInt32LE(firstSeed[i], i * 4); firstSeedBuf.writeUInt32LE(firstSeed[i], i * 4);
} }
param.push(firstSeedBuf.toString('base64')); param.push(firstSeedBuf.toString('base64'));
console.log(firstSeed, firstSeedBuf.toString('base64'));
} }
try { try {
this.process = spawn('./ygopro', param, { this.process = spawn('./ygopro', param, {
...@@ -2330,9 +2329,9 @@ ...@@ -2330,9 +2329,9 @@
finish_recover(fail) { finish_recover(fail) {
var buffer, j, len, player, ref, results; var buffer, j, len, player, ref, results;
if (fail) { if (fail) {
return ygopro.stoc_send_chat_to_room(this, "${recover_fail}", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat_to_room(this, "${recover_fail}", ygopro.constants.COLORS.RED);
return this.terminate();
} else { } else {
// @terminate()
ygopro.stoc_send_chat_to_room(this, "${recover_success}", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat_to_room(this, "${recover_success}", ygopro.constants.COLORS.BABYBLUE);
this.recovering = false; this.recovering = false;
ref = this.get_playing_player(); ref = this.get_playing_player();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment