Skip to content

Commit

Permalink
misc: small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Jul 28, 2024
1 parent 10e98dc commit 3fc0c90
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/game/items.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
ITEM_INFO *g_Items = NULL;
int16_t g_NextItemActive = NO_ITEM;
static int16_t m_NextItemFree = NO_ITEM;
static int16_t m_InterpolatedBounds[6] = { 0 };
static BOUNDS_16 m_InterpolatedBoundsNew = { 0 };
static BOUNDS_16 m_InterpolatedBounds = { 0 };
static int16_t m_MaxUsedItemCount = 0;

void Item_InitialiseArray(int32_t num_items)
Expand Down Expand Up @@ -814,7 +813,7 @@ const BOUNDS_16 *Item_GetBoundsAccurate(const ITEM_INFO *item)

const BOUNDS_16 *const a = &frmptr[0]->bounds;
const BOUNDS_16 *const b = &frmptr[1]->bounds;
BOUNDS_16 *const result = &m_InterpolatedBoundsNew;
BOUNDS_16 *const result = &m_InterpolatedBounds;

result->min.x = a->min.x + (((b->min.x - a->min.x) * frac) / rate);
result->min.y = a->min.y + (((b->min.y - a->min.y) * frac) / rate);
Expand Down
2 changes: 0 additions & 2 deletions src/game/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,5 +303,3 @@ void Stats_UpdateTimer(void)
g_GameInfo.current[g_CurrentLevel].stats.timer =
m_StatsTimer.start_timer + elapsed;
}

void Stats_StopTimer(void);
1 change: 0 additions & 1 deletion src/game/stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ bool Stats_CheckAllSecretsCollected(GAMEFLOW_LEVEL_TYPE level_type);

void Stats_StartTimer(void);
void Stats_UpdateTimer(void);
void Stats_StopTimer(void);

0 comments on commit 3fc0c90

Please sign in to comment.