Skip to content

Commit

Permalink
ck_obj: Don't needlessly re-cache items
Browse files Browse the repository at this point in the history
We were re-caching item sprites needlessly, as a holdover from before
the lump system was implemented. We don't need to do this anymore.
  • Loading branch information
sulix committed Sep 26, 2024
1 parent 4b1bca7 commit 0f177e0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ck_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ void CK_SpawnItem(int tileX, int tileY, int itemNumber)
obj->user2 = obj->gfxChunk;
obj->user3 = obj->gfxChunk + 2;
CK_SetAction(obj, CK_ACTION(CK_ACT_item));
// TODO: Wrong place to cache?
CA_CacheGrChunk(obj->gfxChunk);
CA_CacheGrChunk(obj->gfxChunk + 1);
}

void CK_SpawnCentilifeNotify(int tileX, int tileY)
Expand Down

0 comments on commit 0f177e0

Please sign in to comment.