Skip to content

Commit

Permalink
pierre: fix Pierre not resetting across levels (#539)
Browse files Browse the repository at this point in the history
Resolves #538.
  • Loading branch information
walkawayy authored May 5, 2022
1 parent 0c7b716 commit 2aa2c6b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## [Unreleased](https://github.com/rr-/Tomb1Main/compare/2.8...master)
- ...
- fixed Pierre not resetting across levels (#538, regression from 2.7)

## [2.8](https://github.com/rr-/Tomb1Main/compare/2.7...2.8) - 2022-05-04
- added the option to pause sound in the inventory screen (#309)
Expand Down
5 changes: 5 additions & 0 deletions src/game/objects/ai/pierre.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,8 @@ void Pierre_Control(int16_t item_num)
m_PierreItemNum = NO_ITEM;
}
}

void Pierre_Reset(void)
{
m_PierreItemNum = NO_ITEM;
}
1 change: 1 addition & 0 deletions src/game/objects/ai/pierre.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

void Pierre_Setup(OBJECT_INFO *obj);
void Pierre_Control(int16_t item_num);
void Pierre_Reset(void);
2 changes: 2 additions & 0 deletions src/game/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ void InitialiseGameFlags(void)

g_LevelComplete = false;
g_FlipEffect = -1;

Pierre_Reset();
}

void InitialiseLevelFlags(void)
Expand Down

0 comments on commit 2aa2c6b

Please sign in to comment.