Skip to content

Commit

Permalink
Exclusions to OTEX module resource DB now works properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
GTD-Carthage committed Aug 20, 2024
1 parent 2dc4eb1 commit 3991023
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/zdoom_otex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ function OTEX_PROC_MODULE.synthesize_procedural_themes()
table.name_up(resource_tab)

-- resource_tab exclusions
for k,v in ipairs(OTEX_EXCLUSIONS) do
for k,v in pairs(OTEX_EXCLUSIONS) do
if v == "textures" then
resource_tab[k].textures = nil
resource_tab[k].textures = {}
resource_tab[k].has_textures = false
elseif v == "flats" then
resource_tab[k].flats = nil
resource_tab[k].flats = {}
resource_tab[k].has_flats = false
else
resource_tab[k] = nil
end
Expand Down

0 comments on commit 3991023

Please sign in to comment.