Commit 2445b720 authored by mercury233's avatar mercury233

fix special version

parent 3de1c6c5
...@@ -892,7 +892,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -892,7 +892,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
replay_id=Cloud_replay_ids[Math.floor(Math.random()*Cloud_replay_ids.length)] replay_id=Cloud_replay_ids[Math.floor(Math.random()*Cloud_replay_ids.length)]
redisdb.hgetall "replay:"+replay_id, client.open_cloud_replay redisdb.hgetall "replay:"+replay_id, client.open_cloud_replay
else if info.version != settings.version and info.version != 4921 #YGOMobile不更新,强行兼容 else if info.version != settings.version and (info.version != 4921 or settings.version != 4922) #YGOMobile不更新,强行兼容
ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED)
ygopro.stoc_send client, 'ERROR_MSG', { ygopro.stoc_send client, 'ERROR_MSG', {
msg: 4 msg: 4
...@@ -1056,7 +1056,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -1056,7 +1056,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
ygopro.stoc_die(client, "房间密码不正确") ygopro.stoc_die(client, "房间密码不正确")
else else
if info.version == 4921 #YGOMobile不更新,强行兼容 if info.version == 4921 and settings.version == 4922 #YGOMobile不更新,强行兼容
info.version = settings.version info.version = settings.version
struct = ygopro.structs["CTOS_JoinGame"] struct = ygopro.structs["CTOS_JoinGame"]
struct._setBuff(buffer) struct._setBuff(buffer)
......
...@@ -1107,7 +1107,7 @@ ...@@ -1107,7 +1107,7 @@
} else if (info.pass.toUpperCase() === "W" && settings.modules.enable_cloud_replay) { } else if (info.pass.toUpperCase() === "W" && settings.modules.enable_cloud_replay) {
replay_id = Cloud_replay_ids[Math.floor(Math.random() * Cloud_replay_ids.length)]; replay_id = Cloud_replay_ids[Math.floor(Math.random() * Cloud_replay_ids.length)];
redisdb.hgetall("replay:" + replay_id, client.open_cloud_replay); redisdb.hgetall("replay:" + replay_id, client.open_cloud_replay);
} else if (info.version !== settings.version && info.version !== 4921) { } else if (info.version !== settings.version && (info.version !== 4921 || settings.version !== 4922)) {
ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, settings.modules.update, ygopro.constants.COLORS.RED);
ygopro.stoc_send(client, 'ERROR_MSG', { ygopro.stoc_send(client, 'ERROR_MSG', {
msg: 4, msg: 4,
...@@ -1276,7 +1276,7 @@ ...@@ -1276,7 +1276,7 @@
} else if (info.pass.length && !ROOM_validate(info.pass)) { } else if (info.pass.length && !ROOM_validate(info.pass)) {
ygopro.stoc_die(client, "房间密码不正确"); ygopro.stoc_die(client, "房间密码不正确");
} else { } else {
if (info.version === 4921) { if (info.version === 4921 && settings.version === 4922) {
info.version = settings.version; info.version = settings.version;
struct = ygopro.structs["CTOS_JoinGame"]; struct = ygopro.structs["CTOS_JoinGame"];
struct._setBuff(buffer); struct._setBuff(buffer);
......
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