Skip to content

Commit

Permalink
Use an ItemOverride call instead of resolving upgrades for progressiv…
Browse files Browse the repository at this point in the history
…e items. (#93)

This prevents progressive items from being given as soon as they are loaded for models.
  • Loading branch information
PhlexPlexico authored Jul 29, 2024
1 parent cf7abd8 commit 451a1fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/source/rnd/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ namespace rnd {

void Model_LookupByOverride(Model* model, ItemOverride override) {
if (override.key.all != 0) {
u16 itemId = override.value.looksLikeItemId ? override.value.looksLikeItemId : override.value.getItemId;
u16 resolvedItemId = ItemTable_ResolveUpgrades(itemId);
u16 resolvedItemId = ItemOverride_SetProgressiveItemDraw(override);
model->itemRow = ItemTable_GetItemRow(resolvedItemId);
}
}
Expand Down

0 comments on commit 451a1fc

Please sign in to comment.