diff options
Diffstat (limited to 'src/textures.lua')
| -rw-r--r-- | src/textures.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/textures.lua b/src/textures.lua index 0738912..8cf98a8 100644 --- a/src/textures.lua +++ b/src/textures.lua @@ -73,9 +73,7 @@ function load_textures_from(path) load_textures_from(filepath) else if filepath:match("%.png$") then - local name = string.gsub(filepath, ".png", "") - name = string.gsub(name, "assets/images/", "") - img_bank[name] = lg.newImage(filepath) + img_bank[filepath] = lg.newImage(filepath) elseif filepath:match("%.ase$") then load_ase(filepath) end |
