back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/queue.c
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-07 22:40:47 +0300
committerscratko <m@scratko.xyz>2024-04-07 22:40:47 +0300
commit155a3c5f91c7a3bd89febfeb9927478961f5ee28 (patch)
tree1953cd610d4a06c51aaedb728edd6131a4fa426a /queue.c
parent2c2448cc94b8f17ac699814a75110411d57f3bea (diff)
downloadpacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.tar.gz
pacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.tar.bz2
pacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.zip
Tracking coins eaten
The initialization of ncurses parameters and ghosts was put into functions. The order of movements has been changed: now pacman moves first. Accounting for eaten coins. Correct coin erasure.
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue.c b/queue.c
index dd3dc1b..9e4d01e 100644
--- a/queue.c
+++ b/queue.c
@@ -43,7 +43,7 @@ int equal_points(struct coordinates first_point,
return first_point.x == second_point.x && first_point.y == second_point.y;
}
-int is_consist_point(const struct queue *q, struct coordinates target_point)
+int queue_consists_point(const struct queue *q, struct coordinates target_point)
{
enum { false, true };
struct item *tmp_item = q->first;