Skip to content

Commit

Permalink
lara_state: initialise room number for starting animation
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Aug 23, 2024
1 parent 39238eb commit bdf46c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- fixed enemies unable to climb (#138, regression from 0.1)
- fixed items not being reset between level loads (#142, regression from 0.1)
- fixed pulling the dagger from the dragon not activating triggers (#148, regression from 0.1)
- fixed the music at the beginning of Offshore Rig not playing (#150, regression from 0.1)
- improved initial level load time by lazy-loading audio samples (#114)
- improved crash debug information (#137)

Expand Down
2 changes: 1 addition & 1 deletion src/game/lara/lara_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ void __cdecl Lara_State_Extra_PullDagger(ITEM_INFO *item, COLL_INFO *coll)

void __cdecl Lara_State_Extra_StartAnim(ITEM_INFO *item, COLL_INFO *coll)
{
int16_t room_num;
int16_t room_num = item->room_num;
const SECTOR_INFO *sector =
Room_GetSector(item->pos.x, item->pos.y, item->pos.z, &room_num);
Room_GetHeight(sector, item->pos.x, item->pos.y, item->pos.z);
Expand Down

0 comments on commit bdf46c9

Please sign in to comment.