Skip to content

Commit

Permalink
[MIRROR] Fix build mode preview spawning atoms needlessly [MDB IGNORE…
Browse files Browse the repository at this point in the history
…] (#25476)

* Fix build mode preview spawning atoms needlessly (#80130)

Before the large icon fix, it would use a mutable_appearance,
get_small_overlay wants atoms but it only does appearance things with
them so images and mutable appearances should work. There is no need to
spawn the atom itself.

We will at some point need a way to specify interfaces as argument
types, many such cases of atom or image or mutable_appearance in icon
related procs.

closes #80125

* Fix build mode preview spawning atoms needlessly

---------

Co-authored-by: Kyle Spier-Swenson <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 7, 2023
1 parent a7b5732 commit f686512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/buildmode/buildmode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
preview.name = initial(typepath.name)

// Scale the preview if it's bigger than one tile
var/mutable_appearance/preview_overlay = get_small_overlay(new typepath)
var/mutable_appearance/preview_overlay = get_small_overlay(new /mutable_appearance(typepath))
preview_overlay.appearance_flags |= TILE_BOUND
preview_overlay.layer = FLOAT_LAYER
preview_overlay.plane = FLOAT_PLANE
Expand Down

0 comments on commit f686512

Please sign in to comment.