Loading

Paste #pxeaiir7l

  1. diff --git a/CorsixTH/Lua/graphics.lua b/CorsixTH/Lua/graphics.lua
  2. index bead419..1460d49 100644
  3. --- a/CorsixTH/Lua/graphics.lua
  4. +++ b/CorsixTH/Lua/graphics.lua
  5. @@ -448,8 +448,7 @@ function Graphics:loadAnimations(dir, prefix)
  6.      error("Cannot load original animations " .. prefix)
  7.    end
  8.  
  9. -  if self.app.config.use_new_graphics and self.custom_graphics_folder then
  10. -    if self.custom_graphics.file_mapping then
  11. +  if self.custom_graphics_folder and self.custom_graphics.file_mapping then
  12.      for _, fname in pairs(self.custom_graphics.file_mapping) do
  13.        anims:setCanvas(self.target)
  14.        local data, err = loadCustomAnims(self.custom_graphics_folder .. fname)
  15. @@ -460,7 +459,6 @@ function Graphics:loadAnimations(dir, prefix)
  16.        end
  17.      end
  18.    end
  19. -  end
  20.  
  21.    self.cache.anims[prefix] = anims
  22.    self.load_info[anims] = {self.loadAnimations, self, dir, prefix}

Comments