Commit daaec651 authored by nanahira's avatar nanahira Committed by nanahira

handle everything of tag duel surrender on srvpro

parent eec4cad1
......@@ -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