- allow to specify "none" to set an actor's translation to the identity table.

This commit is contained in:
Christoph Oelckers 2016-10-15 10:51:48 +02:00
parent f23e5d2677
commit 162da2fcaf
1 changed files with 4 additions and 0 deletions

View File

@ -1207,6 +1207,10 @@ int R_FindCustomTranslation(const char *name)
{
return TRANSLATION(TRANSLATION_Standard, 7);
}
else if (!stricmp(name, "None"))
{
return 0;
}
int *t = customTranslationMap.CheckKey(FName(name, true));
return (t != nullptr)? *t : -1;
}