From 59ac494c1981c6d977bdd81bf3524c890b2bb2a8 Mon Sep 17 00:00:00 2001 From: Boondorl Date: Thu, 30 Jan 2025 22:19:47 -0500 Subject: [PATCH] Make CopyBloodColor readonly Allows getting blood colors from default Actors. --- wadsrc/static/zscript/actors/actor.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/actor.zs b/wadsrc/static/zscript/actors/actor.zs index 029855b2cc..0893c107f2 100644 --- a/wadsrc/static/zscript/actors/actor.zs +++ b/wadsrc/static/zscript/actors/actor.zs @@ -1302,7 +1302,7 @@ class Actor : Thinker native native bool A_SetSize(double newradius = -1, double newheight = -1, bool testpos = false); native void A_SprayDecal(String name, double dist = 172, vector3 offset = (0, 0, 0), vector3 direction = (0, 0, 0), bool useBloodColor = false, color decalColor = 0, TranslationID translation = 0); native void A_SetMugshotState(String name); - native void CopyBloodColor(Actor other); + native void CopyBloodColor(readonly other); native void A_RearrangePointers(int newtarget, int newmaster = AAPTR_DEFAULT, int newtracer = AAPTR_DEFAULT, int flags=0); native void A_TransferPointer(int ptr_source, int ptr_recipient, int sourcefield, int recipientfield=AAPTR_DEFAULT, int flags=0);