From 69cc47631c54753ee7396493c4f0e2c6b9cadf2c Mon Sep 17 00:00:00 2001 From: "3190104610@zju.edu.cn" <3190104610@zju.edu.cn> Date: Tue, 19 Oct 2021 23:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=8B=92=E7=BB=9D?= =?UTF-8?q?=E8=81=94=E6=9C=BA=E5=90=8E=E6=97=A0=E6=B3=95=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/APP_Gobang/APP_Gobang.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/User/APP_Gobang/APP_Gobang.c b/User/APP_Gobang/APP_Gobang.c index 7dda2fc..4c395e5 100644 --- a/User/APP_Gobang/APP_Gobang.c +++ b/User/APP_Gobang/APP_Gobang.c @@ -522,7 +522,6 @@ uint8_t APP_Gobang_InitiateConnet(void) { GE_Draw_Fill(60, 75, 200, 90, WHITE); GE_GUI_MsgBox(60, 75, 200, 90, "联机成功", "按“OK”进入游戏", NULL); - //connetion_msg = NONE_MSG; KEY_WaitKey(JOY_OK); return 1; } @@ -546,6 +545,7 @@ uint8_t APP_Gobang_ReplyConnect(void) switch (GE_GUI_MenuBox(60, 75, 200, 90, "对方请求联机,是否接受?", 2, content, NULL)) { case 0: + connetion_msg = NONE_MSG; return 0; break; @@ -558,6 +558,7 @@ uint8_t APP_Gobang_ReplyConnect(void) GE_Draw_Fill(60, 75, 200, 90, WHITE); GE_GUI_MsgBox(60, 75, 200, 90, "联机成功", "按“OK”进入游戏", NULL); KEY_WaitKey(JOY_OK); + connetion_msg = NONE_MSG; return 1; } break; @@ -569,6 +570,7 @@ uint8_t APP_Gobang_ReplyConnect(void) GE_Draw_Fill(60, 75, 200, 90, WHITE); GE_GUI_MsgBox(60, 75, 200, 90, "联机失败", "已拒绝联机,按“OK”退出", NULL); KEY_WaitKey(JOY_OK); + connetion_msg = NONE_MSG; return 0; } break;