Commit cbc7251c authored by nanahira's avatar nanahira

add padding to HS_PLAYER_ENTER

parent 23c0227c
...@@ -78,7 +78,8 @@ ...@@ -78,7 +78,8 @@
], ],
"STOC_HS_PlayerEnter": [ "STOC_HS_PlayerEnter": [
{"name": "name", "type": "unsigned short", "length": 20, "encoding": "UTF-16LE"}, {"name": "name", "type": "unsigned short", "length": 20, "encoding": "UTF-16LE"},
{"name": "pos", "type": "unsigned char"} {"name": "pos", "type": "unsigned char"},
{"name": "padding", "type": "unsigned char"}
], ],
"STOC_HS_PlayerChange": [ "STOC_HS_PlayerChange": [
{"name": "status", "type": "unsigned char"} {"name": "status", "type": "unsigned char"}
......
...@@ -1014,6 +1014,7 @@ CLIENT_send_pre_reconnect_info = global.CLIENT_send_pre_reconnect_info = (client ...@@ -1014,6 +1014,7 @@ CLIENT_send_pre_reconnect_info = global.CLIENT_send_pre_reconnect_info = (client
ygopro.stoc_send(client, 'HS_PLAYER_ENTER', { ygopro.stoc_send(client, 'HS_PLAYER_ENTER', {
name: player.name, name: player.name,
pos: player.pos, pos: player.pos,
padding: 0,
}) })
return return
...@@ -2994,6 +2995,7 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server, datas)-> ...@@ -2994,6 +2995,7 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server, datas)->
ygopro.stoc_send(client, 'HS_PLAYER_ENTER', { ygopro.stoc_send(client, 'HS_PLAYER_ENTER', {
name: player.name, name: player.name,
pos: player.pos pos: player.pos
padding: 0,
}) })
if settings.modules.tips.enabled if settings.modules.tips.enabled
ygopro.stoc_send_random_tip(client) ygopro.stoc_send_random_tip(client)
......
...@@ -1358,7 +1358,8 @@ ...@@ -1358,7 +1358,8 @@
player = ref[j]; player = ref[j];
ygopro.stoc_send(client, 'HS_PLAYER_ENTER', { ygopro.stoc_send(client, 'HS_PLAYER_ENTER', {
name: player.name, name: player.name,
pos: player.pos pos: player.pos,
padding: 0
}); });
} }
}; };
...@@ -3999,7 +4000,8 @@ ...@@ -3999,7 +4000,8 @@
if (player !== client) { if (player !== client) {
ygopro.stoc_send(client, 'HS_PLAYER_ENTER', { ygopro.stoc_send(client, 'HS_PLAYER_ENTER', {
name: player.name, name: player.name,
pos: player.pos pos: player.pos,
padding: 0
}); });
} }
} }
......
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