Cause the maploader to log an error if dmm file contains an undefined type.

This will greatly ease debugging as otherwise the only error you might get is Runtime in reader.dm,370: list index out of bounds, and even then only if the turf has no objects.
This commit is contained in:
Leshana
2020-03-02 13:58:42 -05:00
parent a9ff912af5
commit bfa14f2c25
+1
View File
@@ -292,6 +292,7 @@ var/global/use_preloader = FALSE
old_position = dpos + 1
if(!atom_def) // Skip the item if the path does not exist. Fix your crap, mappers!
error("Maploader skipping undefined type: '[trim_text(copytext(full_def, 1, variables_start))]' (key=[model_key])")
continue
members.Add(atom_def)