Commit 9c07d44a authored by mercury233's avatar mercury233

fix

parent 9f5d2077
...@@ -191,7 +191,7 @@ void SingleDuel::LeaveGame(DuelPlayer* dp) { ...@@ -191,7 +191,7 @@ void SingleDuel::LeaveGame(DuelPlayer* dp) {
NetServer::StopServer(); NetServer::StopServer();
return; return;
} }
if(!game_started) { if(duel_stage == DUEL_STAGE_BEGIN) {
ready[host_pos] = false; ready[host_pos] = false;
STOC_TypeChange sctc; STOC_TypeChange sctc;
sctc.type = 0x10 | host_pos; sctc.type = 0x10 | host_pos;
......
...@@ -177,7 +177,7 @@ void TagDuel::LeaveGame(DuelPlayer* dp) { ...@@ -177,7 +177,7 @@ void TagDuel::LeaveGame(DuelPlayer* dp) {
NetServer::StopServer(); NetServer::StopServer();
return; return;
} }
if(!game_started) { if(duel_stage == DUEL_STAGE_BEGIN) {
ready[host_pos] = false; ready[host_pos] = false;
STOC_TypeChange sctc; STOC_TypeChange sctc;
sctc.type = 0x10 | host_pos; sctc.type = 0x10 | 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