Merge pull request #68 from lrprince/maneuvre-drawing-bugfix

Fix drawing bug on maneuvre stacks
This commit is contained in:
Murilo Pereira 2024-09-23 01:00:44 +02:00 committed by GitHub
commit 9c7212cae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}