- [FIX] Els arounders mai agafaven la corda

This commit is contained in:
2023-10-21 10:39:41 +02:00
parent 6b63dbd70a
commit 66fee27b50

View File

@@ -327,7 +327,7 @@ namespace arounders
void initPujarCorda(arounder *a) void initPujarCorda(arounder *a)
{ {
a->frame = 0; a->frame = 0;
a->prevista = arounders::accions::pujarcorda; a->accio = arounders::accions::pujarcorda;
a->x = a->orientacio == arounders::orientacions::dreta ? a->x + 3 : a->x - 3; a->x = a->orientacio == arounders::orientacions::dreta ? a->x + 3 : a->x - 3;
procesarPujarCorda(a); procesarPujarCorda(a);
} }
@@ -335,7 +335,7 @@ namespace arounders
void initBaixarCorda(arounder *a) void initBaixarCorda(arounder *a)
{ {
a->frame = 0; a->frame = 0;
a->prevista = arounders::accions::baixarcorda; a->accio = arounders::accions::baixarcorda;
if (a->orientacio == arounders::orientacions::dreta) { if (a->orientacio == arounders::orientacions::dreta) {
a->x += 2; a->x += 2;
} else { } else {