From 08269be3c5ac6013dd6740aa6e968960d71f5ed3 Mon Sep 17 00:00:00 2001 From: LanYun Date: Sun, 15 May 2022 01:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E7=AE=B1=E5=AD=90v0.0.4=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BA=86=E5=9C=A8=E6=92=A4=E5=9B=9E=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BB=85=E8=83=BD=E5=9C=A8=E6=B8=B8=E7=8E=A9=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E7=9A=84=E9=82=A3=E4=B8=80=E4=B8=AA=E5=85=B3=E5=8D=A1=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84bug=20=E6=96=B0=E5=A2=9E=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=20=F0=9F=8E=89=20Features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PushBox.c | 2 ++ README.md | 1 + cmake-build-debug/Testing/Temporary/LastTest.log | 4 ++-- data.txt | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PushBox.c b/PushBox.c index 512e8e0..5b6f8cc 100644 --- a/PushBox.c +++ b/PushBox.c @@ -251,8 +251,10 @@ void game() { p = Move(head, p);//人物移动函数 if (!Remain_Box) { Level++;//关卡数加一 + p = NULL;//指针指向空指针 free(head);//释放指针空间 head = malloc(sizeof(Position));//头结点分配内存 + p = head;//指针重新指向头结点,用于遍历链表 win();//关卡通过✅函数 Level_start = time(NULL); //获取当前时间,单位为s } diff --git a/README.md b/README.md index 3ad0bc1..d619e8d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ gcc PushBox.c -o PushBox -lncurses - [x] 无限回滚操作 - [ ] 自动寻路算法 +- [ ] 支持直接链接编译 - [ ] 自动生成地图文件 - [ ] 优化代码及其性能 - [ ] 支持3D图形化显示 diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index 185ecc8..829a8eb 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: May 08 23:46 CST +Start testing: May 15 01:40 CST ---------------------------------------------------------- -End testing: May 08 23:46 CST +End testing: May 15 01:40 CST diff --git a/data.txt b/data.txt index be8cd90..3e205df 100644 --- a/data.txt +++ b/data.txt @@ -1,2 +1,2 @@ Top_Level:14 -Latest_Level:14 \ No newline at end of file +Latest_Level:5 \ No newline at end of file