- missed two things that need to be 'common'.

This commit is contained in:
Christoph Oelckers 2020-04-11 18:19:50 +02:00
commit b4e9c3f20d
3 changed files with 16 additions and 20 deletions

View file

@ -40,10 +40,8 @@
#include "templates.h"
#include "palettecontainer.h"
#include "v_palette.h"
PaletteContainer GPalette;
FColorMatcher ColorMatcher;
//----------------------------------------------------------------------------
//
@ -235,6 +233,21 @@ static bool IndexOutOfRange(const int start1, const int end1, const int start2,
//
//----------------------------------------------------------------------------
bool FRemapTable::operator==(const FRemapTable& o)
{
// Two translations are identical when they have the same amount of colors
// and the palette values for both are identical.
if (&o == this) return true;
if (o.NumEntries != NumEntries) return false;
return !memcmp(o.Palette, Palette, NumEntries * sizeof(*Palette));
}
//----------------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------------
void FRemapTable::MakeIdentity()
{
int i;