Bed material fix (#10760)

apparently beds used initialize which wasnt properly overwritten by the other types, so psychiatrist couch didn't spawn with leather etc.
This commit is contained in:
Wowzewow (Wezzy)
2020-12-13 12:36:01 +02:00
committed by GitHub
parent d3196306f8
commit e3aa12ad5d
2 changed files with 43 additions and 4 deletions
@@ -32,11 +32,9 @@
slowdown = 5
/obj/structure/bed/Initialize(mapload, var/new_material, var/new_padding_material)
. = ..()
/obj/structure/bed/New(newloc, var/new_material = DEFAULT_WALL_MATERIAL, var/new_padding_material)
..(newloc)
color = null
if(!new_material)
new_material = DEFAULT_WALL_MATERIAL
material = SSmaterials.get_material_by_name(new_material)
if(!istype(material))
qdel(src)