Skip to content

Commit

Permalink
level/types: remove redundant level item count
Browse files Browse the repository at this point in the history
This is no longer required for injection processing.
  • Loading branch information
lahm86 committed Feb 7, 2025
1 parent ab3816d commit 0195c49
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libtrx/include/libtrx/game/level/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ typedef struct {
} samples;

int32_t mesh_ptr_count;
int32_t item_count;
} LEVEL_INFO;
2 changes: 0 additions & 2 deletions src/tr1/game/inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,6 @@ static void M_TriggeredItem(INJECTION *injection, LEVEL_INFO *level_info)
item->rot.y = VFile_ReadS16(fp);
item->shade.value_1 = VFile_ReadS16(fp);
item->flags = VFile_ReadU16(fp);

level_info->item_count++; // TODO: remove?
}

static void M_RoomMeshEdits(const INJECTION *const injection)
Expand Down

0 comments on commit 0195c49

Please sign in to comment.