mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Fix 'error loading icon' warning if airlocks do not have overlays_file var
This commit is contained in:
parent
38b88aa3c6
commit
361065ea20
1 changed files with 7 additions and 5 deletions
|
|
@ -283,11 +283,13 @@ impl RenderPass for Overlays {
|
|||
}
|
||||
} else if atom.istype("/obj/machinery/door/airlock/") {
|
||||
if atom.get_var("glass", objtree).to_bool() {
|
||||
overlays.push(Sprite {
|
||||
icon: atom.get_var("overlays_file", objtree).as_path_str().unwrap_or(""),
|
||||
icon_state: "glass_closed",
|
||||
.. atom.sprite
|
||||
})
|
||||
if let Some(overlays_file) = atom.get_var("overlays_file", objtree).as_path_str() {
|
||||
overlays.push(Sprite {
|
||||
icon: overlays_file,
|
||||
icon_state: "glass_closed",
|
||||
.. atom.sprite
|
||||
})
|
||||
}
|
||||
} else {
|
||||
add_to(overlays, atom, "fill_closed");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue