From df1a90fb1bd1e8bacf447ee0312471b3deec53a4 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Sat, 21 Jan 2017 05:23:00 +0200 Subject: [PATCH] Apparently 'name = something' gets parsed as a Type. Fixed CustomSprite actor again. --- wadsrc/static/zscript/shared/sharedmisc.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/shared/sharedmisc.txt b/wadsrc/static/zscript/shared/sharedmisc.txt index 73f33c060..c837f5f1e 100644 --- a/wadsrc/static/zscript/shared/sharedmisc.txt +++ b/wadsrc/static/zscript/shared/sharedmisc.txt @@ -156,10 +156,9 @@ class CustomSprite : Actor override void BeginPlay () { - String name; Super.BeginPlay (); - name = String.Format("BTIL%04d", args[0] & 0xffff); + String name = String.Format("BTIL%04d", args[0] & 0xffff); picnum = TexMan.CheckForTexture (name, TexMan.TYPE_Build); if (!picnum.Exists()) {