Commit 424b6b93 authored by nanahira's avatar nanahira

emergency exit

parent 796b022c
...@@ -769,6 +769,21 @@ public class Ocgcore : ServantWithCardDescription ...@@ -769,6 +769,21 @@ public class Ocgcore : ServantWithCardDescription
returnTo(); returnTo();
} }
public void onEmergencyExit()
{
if (TcpHelper.tcpClient != null)
{
/*if (TcpHelper.tcpClient.Connected)
{
Program.I().ocgcore.returnServant = Program.I().selectServer;
TcpHelper.tcpClient.Client.Shutdown(0);
TcpHelper.tcpClient.Close();
} */
TcpHelper.tcpClient = null;
}
returnTo();
}
public bool surrended = false; public bool surrended = false;
public void onChat() public void onChat()
...@@ -8846,11 +8861,11 @@ public class Ocgcore : ServantWithCardDescription ...@@ -8846,11 +8861,11 @@ public class Ocgcore : ServantWithCardDescription
} }
//RMSshow_yesOrNoForce(InterString.Get("你确定要投降吗?"), new messageSystemValue { value = "yes", hint = "yes" }, new messageSystemValue { value = "no", hint = "no" }); //RMSshow_yesOrNoForce(InterString.Get("你确定要投降吗?"), new messageSystemValue { value = "yes", hint = "yes" }, new messageSystemValue { value = "no", hint = "no" });
/*surrended = false; surrended = false;
Program.I().room.duelEnded = false; Program.I().room.duelEnded = false;
Program.I().room.needSide = false; Program.I().room.needSide = false;
Program.I().room.sideWaitingObserver = false; Program.I().room.sideWaitingObserver = false;
onExit(); */ onEmergencyExit();
return; 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