From 162da2fcafbb4c9e55d2272470c81b0a29e2ad9a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 15 Oct 2016 10:51:48 +0200 Subject: [PATCH] - allow to specify "none" to set an actor's translation to the identity table. --- src/r_data/r_translate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_data/r_translate.cpp b/src/r_data/r_translate.cpp index bf9365002..983baea58 100644 --- a/src/r_data/r_translate.cpp +++ b/src/r_data/r_translate.cpp @@ -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; }