Commit f8119312 authored by nanahira's avatar nanahira

Merge branch 'server-develop' of git.mycard.moe:mycard/ygopro into server-develop

parents edbab083 3b514da5
...@@ -680,6 +680,7 @@ void TagDuel::Surrender(DuelPlayer* dp) { ...@@ -680,6 +680,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
if(dp->type > 3 || !pduel) if(dp->type > 3 || !pduel)
return; return;
uint32 player = dp->type; uint32 player = dp->type;
#ifndef YGOPRO_SERVER_MODE
if(surrender[player]) if(surrender[player])
return; return;
static const uint32 teammatemap[] = { 1, 0, 3, 2 }; static const uint32 teammatemap[] = { 1, 0, 3, 2 };
...@@ -690,6 +691,7 @@ void TagDuel::Surrender(DuelPlayer* dp) { ...@@ -690,6 +691,7 @@ void TagDuel::Surrender(DuelPlayer* dp) {
NetServer::SendPacketToPlayer(players[teammate], STOC_TEAMMATE_SURRENDER); NetServer::SendPacketToPlayer(players[teammate], STOC_TEAMMATE_SURRENDER);
return; return;
} }
#endif
static const uint32 winplayermap[] = { 1, 1, 0, 0 }; static const uint32 winplayermap[] = { 1, 1, 0, 0 };
unsigned char wbuf[3]; unsigned char wbuf[3];
wbuf[0] = MSG_WIN; 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