- just to be thorough, added a 'sprite' keyword to define a patch to give priority to the TEX_Sprite namespace.

This commit is contained in:
Christoph Oelckers 2016-10-24 23:40:37 +02:00
parent 4e4fd97950
commit 8368272b4d

View file

@ -1245,6 +1245,23 @@ FMultiPatchTexture::FMultiPatchTexture (FScanner &sc, int usetype)
part.Texture = NULL; part.Texture = NULL;
part.Translation = NULL; part.Translation = NULL;
} }
else if (sc.Compare("Sprite"))
{
TexPart part;
TexInit init;
ParsePatch(sc, part, init);
if (init.TexName.IsNotEmpty())
{
parts.Push(part);
init.UseType = TEX_Sprite;
init.Silent = bSilent;
init.HasLine = true;
init.sc = sc;
inits.Push(init);
}
part.Texture = NULL;
part.Translation = NULL;
}
else if (sc.Compare("Graphic")) else if (sc.Compare("Graphic"))
{ {
TexPart part; TexPart part;