- [FIX] Al morir i resetejar l'habitació l'heroi apareixia amb l'orientació incorrecta
This commit is contained in:
@@ -1327,6 +1327,7 @@ namespace actor
|
|||||||
int parts = PART_NONE;
|
int parts = PART_NONE;
|
||||||
bool boosters_collected[100];
|
bool boosters_collected[100];
|
||||||
vec3_t first_pos = {0,0,0};
|
vec3_t first_pos = {0,0,0};
|
||||||
|
int first_orient = 0;
|
||||||
|
|
||||||
void init(const bool complete)
|
void init(const bool complete)
|
||||||
{
|
{
|
||||||
@@ -1344,6 +1345,7 @@ namespace actor
|
|||||||
for (int i=0; i<100; ++i) boosters_collected[i] = false;
|
for (int i=0; i<100; ++i) boosters_collected[i] = false;
|
||||||
} else {
|
} else {
|
||||||
hero->pos = first_pos;
|
hero->pos = first_pos;
|
||||||
|
hero->orient = first_orient;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1523,6 +1525,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
actor_t *hero = actor::find("HERO");
|
actor_t *hero = actor::find("HERO");
|
||||||
first_pos = hero->pos;
|
first_pos = hero->pos;
|
||||||
|
first_orient = hero->orient;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user