Make get_smooth_underlay_icon work properly with space parallax (#3906)

Fixes an issue where space underlays on diagonally smoothed turfs would not work properly with space parallax.
This commit is contained in:
Lohikar
2017-12-17 16:20:35 -06:00
committed by Erki
parent 523e8941d4
commit f73849368f
4 changed files with 2 additions and 11 deletions

View File

@@ -181,6 +181,7 @@
var/istate = "[((x + y) ^ ~(x * y) + z) % 25]"
underlay_appearance.icon = 'icons/turf/space.dmi'
underlay_appearance.icon_state = istate
underlay_appearance.plane = PLANE_SPACE_BACKGROUND
var/image/dust = image('icons/turf/space_parallax1.dmi', istate)
dust.plane = PLANE_SPACE_DUST

View File

@@ -92,8 +92,7 @@
return QDEL_HINT_IWILLGC
/turf/proc/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
underlay_appearance.icon = icon
underlay_appearance.icon_state = icon_state
underlay_appearance.appearance = src
underlay_appearance.dir = adjacency_dir
return TRUE

View File

@@ -561,11 +561,6 @@
return INITIALIZE_HINT_NORMAL
/turf/simulated/floor/asteroid/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
. = ..()
underlay_appearance.pixel_x = pixel_x
underlay_appearance.pixel_y = pixel_y
/turf/simulated/floor/asteroid/ex_act(severity)
switch(severity)
if(3.0)

View File

@@ -105,10 +105,6 @@
return ..()
/turf/simulated/open/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
underlay_appearance.appearance = src
return TRUE
/**
* Used to check whether or not the specific open turf eventually leads into spess.
*