Commit c69ce68b authored by nanahira's avatar nanahira

fix zombie room

parent abff1deb
...@@ -177,6 +177,13 @@ void SingleDuel::JoinGame(DuelPlayer* dp, unsigned char* pdata, bool is_creater) ...@@ -177,6 +177,13 @@ void SingleDuel::JoinGame(DuelPlayer* dp, unsigned char* pdata, bool is_creater)
} }
} }
void SingleDuel::LeaveGame(DuelPlayer* dp) { void SingleDuel::LeaveGame(DuelPlayer* dp) {
#ifdef YGOPRO_SERVER_MODE
if(dp->type == 0 && duel_stage != DUEL_STAGE_BEGIN) {
EndDuel();
NetServer::StopServer();
return;
}
#endif
if(dp == host_player) { if(dp == host_player) {
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
int host_pos; int host_pos;
......
...@@ -165,6 +165,13 @@ void TagDuel::JoinGame(DuelPlayer* dp, unsigned char* pdata, bool is_creater) { ...@@ -165,6 +165,13 @@ void TagDuel::JoinGame(DuelPlayer* dp, unsigned char* pdata, bool is_creater) {
} }
} }
void TagDuel::LeaveGame(DuelPlayer* dp) { void TagDuel::LeaveGame(DuelPlayer* dp) {
#ifdef YGOPRO_SERVER_MODE
if(dp->type == 0 && duel_stage != DUEL_STAGE_BEGIN) {
EndDuel();
NetServer::StopServer();
return;
}
#endif
if(dp == host_player) { if(dp == host_player) {
#ifdef YGOPRO_SERVER_MODE #ifdef YGOPRO_SERVER_MODE
int host_pos; int host_pos;
......
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