From ed160b0588cda903d1d2e24ca99d61c8a5ee0aac Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 24 Jul 2024 08:58:29 +0200 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20Al=20morir=20i=20resetejar=20l'habi?= =?UTF-8?q?taci=C3=B3=20l'heroi=20apareixia=20amb=20l'orientaci=C3=B3=20in?= =?UTF-8?q?correcta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/actor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/actor.cpp b/source/actor.cpp index 3670da9..1c6f127 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -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; } }