- [FIX] Al morir i resetejar l'habitació l'heroi apareixia amb l'orientació incorrecta

This commit is contained in:
2024-07-24 08:58:29 +02:00
parent 68985ad843
commit ed160b0588

View File

@@ -1327,6 +1327,7 @@ namespace actor
int parts = PART_NONE;
bool boosters_collected[100];
vec3_t first_pos = {0,0,0};
int first_orient = 0;
void init(const bool complete)
{
@@ -1344,6 +1345,7 @@ namespace actor
for (int i=0; i<100; ++i) boosters_collected[i] = false;
} else {
hero->pos = first_pos;
hero->orient = first_orient;
}
}
@@ -1523,6 +1525,7 @@ namespace actor
{
actor_t *hero = actor::find("HERO");
first_pos = hero->pos;
first_orient = hero->orient;
}
}