[Not a bug] v.cachePatch ignores lowercase characters

Status
Not open for further replies.

Lactozilla

Developer
Sonic Team Junior
EarnestClearcutAmphibian.gif

The uppercase counterpart of the lump name is returned instead.
 
Last edited by a moderator:
Code:
hud.add(function(v)
         v.draw(160, 160, v.cachePatch("PLAYa2a8")) -- will draw "PLAYA2A8"
end)
 
This is intentional so I'm aware, the internal code involved with caching general patch lumps is case-insensitive. We're not going to fix this for v.cachePatch and v.PatchExists, they weren't designed for sprites in the first place anyway. (I've been working on new Lua video library functions to get sprite patches in a much better way for 2.2 anyway, especially considering the changes to character skins.)
 
Last edited:
Not a bug -- this is how the Doom engine works.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top