Commit a5b01c1b authored by mercury233's avatar mercury233

update

parent b1eed816
...@@ -202,7 +202,9 @@ void SingleDuel::LeaveGame(DuelPlayer* dp) { ...@@ -202,7 +202,9 @@ void SingleDuel::LeaveGame(DuelPlayer* dp) {
} else { } else {
EndDuel(); EndDuel();
NetServer::StopServer(); NetServer::StopServer();
return;
} }
ready[host_pos] = false;
STOC_TypeChange sctc; STOC_TypeChange sctc;
sctc.type = 0x10 | host_pos; sctc.type = 0x10 | host_pos;
NetServer::SendPacketToPlayer(players[host_pos], STOC_TYPE_CHANGE, sctc); NetServer::SendPacketToPlayer(players[host_pos], STOC_TYPE_CHANGE, sctc);
......
...@@ -175,7 +175,9 @@ void TagDuel::LeaveGame(DuelPlayer* dp) { ...@@ -175,7 +175,9 @@ void TagDuel::LeaveGame(DuelPlayer* dp) {
} else { } else {
EndDuel(); EndDuel();
NetServer::StopServer(); NetServer::StopServer();
return;
} }
ready[host_pos] = false;
STOC_TypeChange sctc; STOC_TypeChange sctc;
sctc.type = 0x10 | host_pos; sctc.type = 0x10 | host_pos;
NetServer::SendPacketToPlayer(players[host_pos], STOC_TYPE_CHANGE, sctc); NetServer::SendPacketToPlayer(players[host_pos], STOC_TYPE_CHANGE, sctc);
......
Subproject commit e7f45a9d3b7d42748c4a6f97c56ed32593c979ef Subproject commit 0db546f8d051f478f410cb3d53161153ddb355bb
Subproject commit dc40ce9811cc09192c527c888449cdbcdc9036d2 Subproject commit 4916c325a4d8f2b314fef11c8cfd50aace7f4d42
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