-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in some very necessary frees() to pair with my mallocs(), along with a confirm menu when choosing to delete your scores.
- Loading branch information
1 parent
1a52ed2
commit 792d542
Showing
5 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,5 +128,6 @@ int mainLoop(int difficulty) { | |
sy += dy; | ||
refresh(); | ||
} | ||
free(snake); | ||
return l; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
|
||
2 AM 3300 | ||
2 AM 1500 | ||
4 AM 800 | ||
0 fl 400 | ||
0 fl 200 | ||
0 AM 100 | ||
2 dA 2700 | ||
1 AM 2400 | ||
4 AM 2200 | ||
2 AM 1400 | ||
4 dA 1000 | ||
4 da 900 | ||
1 AM 600 | ||
2 aj 100 |