Skip to content

Commit

Permalink
demo: fix equipping weapons on start
Browse files Browse the repository at this point in the history
Resolves #440
  • Loading branch information
rr- committed Feb 17, 2022
1 parent bdb481c commit c100ef0
Show file tree
Hide file tree
Showing 2 changed files with 6 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.6.1...master)
- ...
- fixed equipping gun after starting a demo (#440, regression from 2.6)

## [2.6.1](https://github.com/rr-/Tomb1Main/compare/2.6...2.6.1) - 2022-02-16
- fixed equipping gun after starting the game (#439, regression from 2.6)
Expand Down
5 changes: 5 additions & 0 deletions src/game/demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ int32_t StartDemo()
Random_SeedDraw(0xD371F947);
Random_SeedControl(0xD371F947);

// LaraGun() expects request_gun_type to be set only when it
// really is needed, not at all times.
// https://github.com/rr-/Tomb1Main/issues/36
g_Lara.request_gun_type = LGT_UNARMED;

txt = Text_Create(0, -16, g_GameFlow.strings[GS_MISC_DEMO_MODE]);
Text_Flash(txt, 1, 20);
Text_AlignBottom(txt, 1);
Expand Down

0 comments on commit c100ef0

Please sign in to comment.