From 0d07c4808b73af1ec9ef0a6a61248c6f3c3d8897 Mon Sep 17 00:00:00 2001 From: Vladisvell <73733747+Vladisvell@users.noreply.github.com> Date: Sun, 8 Sep 2024 17:08:13 +0500 Subject: [PATCH] add: 1643 compatibility patch (#5866) * add: 1643 compatibility patch * Added DM preprocessor instructions to change behavior depending on compiler's version * Update code/datums/mutable_appearance.dm --- code/datums/mutable_appearance.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/datums/mutable_appearance.dm b/code/datums/mutable_appearance.dm index f232473c962..e3d7ecdec32 100644 --- a/code/datums/mutable_appearance.dm +++ b/code/datums/mutable_appearance.dm @@ -6,11 +6,17 @@ // Mutable appearances erase template vars on new, because they accept an appearance to copy as an arg // If we have nothin to copy, we set the float plane + +#if DM_BUILD > 1642 +/mutable_appearance/proc/New(mutable_appearance/to_copy) + if(!to_copy) + plane = FLOAT_PLANE +#else /mutable_appearance/New(mutable_appearance/to_copy) ..() if(!to_copy) plane = FLOAT_PLANE - +#endif // Helper similar to image() /proc/mutable_appearance(icon, icon_state = "", layer = FLOAT_LAYER, atom/offset_spokesman, plane = FLOAT_PLANE, alpha = 255, appearance_flags = NONE, color, offset_const)