Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drawing bug on maneuvre stacks #68

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,25 @@ void cursor_move(struct cursor *cursor, enum movement movement) {
if (cursor->y == CURSOR_BEGIN_Y) {
switch (cursor->x - 3) {
case MANEUVRE_0_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[0]);
cursor->y = 6 + deck->maneuvre[0]->card->frame->begin_y;
break;
case MANEUVRE_1_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[1]);
cursor->y = 6 + deck->maneuvre[1]->card->frame->begin_y;
break;
case MANEUVRE_2_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[2]);
cursor->y = 6 + deck->maneuvre[2]->card->frame->begin_y;
break;
case MANEUVRE_3_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[3]);
cursor->y = 6 + deck->maneuvre[3]->card->frame->begin_y;
break;
case MANEUVRE_4_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[4]);
cursor->y = 6 + deck->maneuvre[4]->card->frame->begin_y;
break;
case MANEUVRE_5_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[5]);
cursor->y = 6 + deck->maneuvre[5]->card->frame->begin_y;
break;
case MANEUVRE_6_BEGIN_X:
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[6]);
cursor->y = 6 + deck->maneuvre[6]->card->frame->begin_y;
break;
}
}
Expand Down