Skip to content

Commit

Permalink
add: 1643 compatibility patch (ss220-space#5866)
Browse files Browse the repository at this point in the history
* add: 1643 compatibility patch

* Added DM preprocessor instructions to change behavior depending on compiler's version

* Update code/datums/mutable_appearance.dm
  • Loading branch information
Vladisvell authored Sep 8, 2024
1 parent 972f461 commit 0d07c48
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/datums/mutable_appearance.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d07c48

Please sign in to comment.