mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- allow to specify "none" to set an actor's translation to the identity table.
This commit is contained in:
parent
f23e5d2677
commit
162da2fcaf
1 changed files with 4 additions and 0 deletions
|
@ -1207,6 +1207,10 @@ int R_FindCustomTranslation(const char *name)
|
||||||
{
|
{
|
||||||
return TRANSLATION(TRANSLATION_Standard, 7);
|
return TRANSLATION(TRANSLATION_Standard, 7);
|
||||||
}
|
}
|
||||||
|
else if (!stricmp(name, "None"))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
int *t = customTranslationMap.CheckKey(FName(name, true));
|
int *t = customTranslationMap.CheckKey(FName(name, true));
|
||||||
return (t != nullptr)? *t : -1;
|
return (t != nullptr)? *t : -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue