mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Add a warning for bad design icons, fix existing instances (#38840)
* Add a warning for bad design icons, fix existing instances * Use non-line-numbered warning
This commit is contained in:
committed by
vuonojenmustaturska
parent
6a508a3391
commit
1196e7d087
@@ -587,7 +587,11 @@ GLOBAL_LIST_EMPTY(asset_datums)
|
||||
if (machine)
|
||||
item = machine
|
||||
var/icon_file = initial(item.icon)
|
||||
var/icon/I = icon(icon_file, initial(item.icon_state), SOUTH)
|
||||
var/icon_state = initial(item.icon_state)
|
||||
if (!(icon_state in icon_states(icon_file)))
|
||||
warning("design [D] with icon '[icon_file]' missing state '[icon_state]'")
|
||||
continue
|
||||
var/icon/I = icon(icon_file, icon_state, SOUTH)
|
||||
|
||||
// computers (and snowflakes) get their screen and keyboard sprites
|
||||
if (ispath(item, /obj/machinery/computer) || ispath(item, /obj/machinery/power/solar_control))
|
||||
|
||||
Reference in New Issue
Block a user