Commit 3b514da5 authored by nanahira's avatar nanahira

handle everything of tag duel surrender on srvpro

parent 19c16c27
Pipeline #27225 passed with stages
in 1 minute and 42 seconds
......@@ -679,6 +679,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
if(dp->type > 3 || !pduel)
return;
uint32 player = dp->type;
#ifndef YGOPRO_SERVER_MODE
if(surrender[player])
return;
static const uint32 teammatemap[] = { 1, 0, 3, 2 };
......@@ -689,6 +690,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
NetServer::SendPacketToPlayer(players[teammate], STOC_TEAMMATE_SURRENDER);
return;
}
#endif
static const uint32 winplayermap[] = { 1, 1, 0, 0 };
unsigned char wbuf[3];
wbuf[0] = MSG_WIN;
......
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