- ported GZDoom's new 'skyoffset' ANIMDEFS option for compatibility purposes.
SVN r1977 (trunk)
This commit is contained in:
parent
363dfcffbd
commit
e0734b3c2d
4 changed files with 23 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue