Commit a9ababcb authored by nanahira's avatar nanahira

change duel stage even after stop server

parent 4938a94e
......@@ -633,9 +633,8 @@ void SingleDuel::DuelEndProc() {
#ifdef YGOPRO_SERVER_MODE
NetServer::ReSendToPlayers(cache_recorder, replay_recorder);
NetServer::StopServer();
#else
duel_stage = DUEL_STAGE_END;
#endif
duel_stage = DUEL_STAGE_END;
} else {
int winc[3] = {0, 0, 0};
for(int i = 0; i < duel_count; ++i)
......@@ -651,9 +650,8 @@ void SingleDuel::DuelEndProc() {
#ifdef YGOPRO_SERVER_MODE
NetServer::ReSendToPlayers(cache_recorder, replay_recorder);
NetServer::StopServer();
#else
duel_stage = DUEL_STAGE_END;
#endif
duel_stage = DUEL_STAGE_END;
} else {
if(players[0] != pplayer[0]) {
players[0] = pplayer[0];
......
......@@ -640,9 +640,8 @@ void TagDuel::DuelEndProc() {
#ifdef YGOPRO_SERVER_MODE
NetServer::ReSendToPlayers(cache_recorder, replay_recorder);
NetServer::StopServer();
#else
duel_stage = DUEL_STAGE_END;
#endif
duel_stage = DUEL_STAGE_END;
}
void TagDuel::Surrender(DuelPlayer* dp) {
return;
......
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