Commit 853d588f authored by nanahira's avatar nanahira

add query_card_info before duel start

parent 180801da
......@@ -563,9 +563,17 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
NetServer::SendBufferToPlayer(*oit, STOC_GAME_MSG, startbuf, 19);
RefreshExtra(0);
RefreshExtra(1);
start_duel(pduel, opt);
char reload_buffer[1024];
int reload_buffer_length = query_field_info(pduel, (unsigned char*)reload_buffer);
NetServer::SendBufferToPlayer(players[0], STOC_GAME_MSG, reload_buffer, reload_buffer_length);
NetServer::ReSendToPlayer(players[1]);
for(auto oit = observers.begin(); oit != observers.end(); ++oit)
NetServer::ReSendToPlayer(*oit);
// server should send to recorder as well
RefreshGrave(0, 0xefffff, 0);
RefreshGrave(1, 0xefffff, 0);
start_duel(pduel, opt);
if(host_info.time_limit) {
time_elapsed = 0;
timeval timeout = { 1, 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