- got rid of all DTA_Translation uses.

This commit is contained in:
Christoph Oelckers 2017-02-05 00:17:29 +01:00
commit 470dc138c6
5 changed files with 11 additions and 24 deletions

View file

@ -472,11 +472,6 @@ static inline double ListGetDouble(va_list &tags)
return va_arg(tags, double);
}
static inline FRemapTable* ListGetTranslation(va_list &tags)
{
return va_arg(tags, FRemapTable*);
}
// These two options are only being used by the D3D version of the HUD weapon drawer, they serve no purpose anywhere else.
static inline FSpecialColormap * ListGetSpecialColormap(va_list &tags)
{
@ -512,12 +507,6 @@ static inline double ListGetDouble(VMVa_List &tags)
return 0;
}
static inline FRemapTable* ListGetTranslation(VMVa_List &tags)
{
ThrowAbortException(X_OTHER, "Invalid tag in draw function");
return nullptr;
}
static inline FSpecialColormap * ListGetSpecialColormap(VMVa_List &tags)
{
ThrowAbortException(X_OTHER, "Invalid tag in draw function");
@ -731,10 +720,6 @@ bool DCanvas::ParseDrawTextureTags(FTexture *img, double x, double y, DWORD tag,
fillcolorset = true;
break;
case DTA_Translation:
parms->remap = ListGetTranslation(tags);
break;
case DTA_TranslationIndex:
parms->remap = TranslationToTable(ListGetInt(tags));
break;