From a6ff63951fe6f6ef87806e118d78fe354844b814 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Sat, 18 Nov 2023 09:54:23 -0600 Subject: [PATCH] Fixed missing translation spots. - Removed translation parameter from ZSprite's `Spawn` mechanic since it's no longer compatible. --- wadsrc/static/zscript/zsprite.zs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wadsrc/static/zscript/zsprite.zs b/wadsrc/static/zscript/zsprite.zs index a4b2595850..2c11f51109 100644 --- a/wadsrc/static/zscript/zsprite.zs +++ b/wadsrc/static/zscript/zsprite.zs @@ -4,7 +4,7 @@ Class ZSprite : Thinker native native Vector2 Scale, Offset; native double Roll, Alpha; native TextureID Texture; - native uint Translation; + native TranslationID Translation; native uint16 Flags; native int16 LightLevel; native bool bXFlip, bYFlip, @@ -19,7 +19,7 @@ Class ZSprite : Thinker native native bool IsFrozen(); static ZSprite Spawn(Class type, TextureID tex, Vector3 pos, Vector3 vel, double alpha = 1.0, int flags = 0, - double roll = 0.0, Vector2 scale = (1,1), Vector2 offset = (0,0), int style = STYLE_Normal, int trans = 0) + double roll = 0.0, Vector2 scale = (1,1), Vector2 offset = (0,0), int style = STYLE_Normal) { if (!Level) return null; @@ -34,7 +34,6 @@ Class ZSprite : Thinker native p.Scale = scale; p.Offset = offset; p.SetRenderStyle(style); - p.Translation = trans; p.Flags = flags; } return p;