Commit a34331a2 authored by 神楽坂玲奈's avatar 神楽坂玲奈 Committed by Ma

fix

parent 7a357c47
...@@ -393,7 +393,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -393,7 +393,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return return
opt1 = buffer.readUInt8(2) opt1 = buffer.readUInt8(2)
opt2 = buffer.readUInt8(3) opt2 = buffer.readUInt16LE(3)
opt3 = buffer.readUInt8(5) opt3 = buffer.readUInt8(5)
options = { options = {
lflist: 0 lflist: 0
...@@ -697,7 +697,7 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)-> ...@@ -697,7 +697,7 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)->
return unless client.room return unless client.room
unless client.room.started #first start unless client.room.started #first start
client.room.started = true client.room.started = true
roomlist.delete room.name unless room.private roomlist.delete client.room.name unless client.room.private
#client.room.duels = [] #client.room.duels = []
client.room.dueling_players = [] client.room.dueling_players = []
for player in client.room.players when player.pos != 7 for player in client.room.players when player.pos != 7
......
...@@ -422,7 +422,7 @@ ...@@ -422,7 +422,7 @@
return; return;
} }
opt1 = buffer.readUInt8(2); opt1 = buffer.readUInt8(2);
opt2 = buffer.readUInt8(3); opt2 = buffer.readUInt16LE(3);
opt3 = buffer.readUInt8(5); opt3 = buffer.readUInt8(5);
options = { options = {
lflist: 0, lflist: 0,
...@@ -788,8 +788,8 @@ ...@@ -788,8 +788,8 @@
} }
if (!client.room.started) { if (!client.room.started) {
client.room.started = true; client.room.started = true;
if (!room["private"]) { if (!client.room["private"]) {
roomlist["delete"](room.name); roomlist["delete"](client.room.name);
} }
client.room.dueling_players = []; client.room.dueling_players = [];
ref = client.room.players; ref = client.room.players;
......
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