diff --git a/wadsrc/static/zscript/doombase.zs b/wadsrc/static/zscript/doombase.zs index d4c4129a51..1cb0c11512 100644 --- a/wadsrc/static/zscript/doombase.zs +++ b/wadsrc/static/zscript/doombase.zs @@ -46,11 +46,27 @@ extend struct Translation { Color colors[256]; - native int AddTranslation(); native static bool SetPlayerTranslation(int group, int num, int plrnum, PlayerClass pclass); native static int GetID(Name transname); } +// This is needed because Actor contains a field named 'translation' which shadows the above. +struct Translate version("4.5") +{ + static int MakeID(int group, int num) + { + return (group << 16) + num; + } + static bool SetPlayerTranslation(int group, int num, int plrnum, PlayerClass pclass) + { + return Translation.SetPlayerTranslation(group, num, plrnum, pclass); + } + static int GetID(Name transname) + { + return Translation.GetID(transname); + } +} + struct DamageTypeDefinition native { native static bool IgnoreArmor(Name type);