- removed the implicit conversion operators from FName.

These were creating dangerous interdependencies. It is better to do explicit conversions when needed.
As an added plus, this means that zstring.h no longer depends on name.h which was very annoying.
This commit is contained in:
Christoph Oelckers 2020-04-11 12:58:38 +02:00
commit ace3e29473
57 changed files with 184 additions and 200 deletions

View file

@ -708,7 +708,7 @@ static TMap<FName, int> customTranslationMap;
int R_FindCustomTranslation(FName name)
{
switch (name)
switch (name.GetIndex())
{
case NAME_Ice:
// Ice is a special case which will remain in its original slot.
@ -738,7 +738,7 @@ int R_FindCustomTranslation(FName name)
return TRANSLATION(TRANSLATION_Players, name.GetIndex() - NAME_Player1);
}
int *t = customTranslationMap.CheckKey(FName(name, true));
int *t = customTranslationMap.CheckKey(name);
return (t != nullptr)? *t : -1;
}