- ported GZDoom's new 'skyoffset' ANIMDEFS option for compatibility purposes.

SVN r1977 (trunk)
This commit is contained in:
Christoph Oelckers 2009-11-13 21:28:39 +00:00
commit e0734b3c2d
4 changed files with 23 additions and 3 deletions

View file

@ -405,6 +405,17 @@ static void R_InitAnimDefs ()
{
P_ParseAnimatedDoor (sc);
}
else if (sc.Compare("skyoffset"))
{
sc.MustGetString ();
FTextureID picnum = TexMan.CheckForTexture (sc.String, FTexture::TEX_Wall, texflags);
sc.MustGetNumber();
if (picnum.Exists())
{
FTexture *tex = TexMan[picnum];
tex->SkyOffset = sc.Number;
}
}
else
{
sc.ScriptError (NULL);