mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-20 12:42:43 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user