mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed: Replacing a text image with actual text may only happen if the text comes from the string table.
This commit is contained in:
parent
f6d3de76cf
commit
3c07485d11
1 changed files with 1 additions and 0 deletions
|
@ -428,6 +428,7 @@ bool FTextureManager::OkForLocalization(FTextureID texnum, const char *substitut
|
|||
|
||||
uint32_t langtable = 0;
|
||||
if (*substitute == '$') substitute = GStrings.GetString(substitute+1, &langtable);
|
||||
else return true; // String literals from the source data should never override graphics from the same definition.
|
||||
if (substitute == nullptr) return true; // The text does not exist.
|
||||
|
||||
// Modes 2, 3 and 4 must not replace localized textures.
|
||||
|
|
Loading…
Reference in a new issue