Fixes the maploader being sensitive to trailing semicolons (#25275)

* Fixes #25274
This commit is contained in:
Cyberboss
2017-03-20 11:01:26 -04:00
committed by Leo
parent 90ada23ae1
commit 7816a8a1e0

View File

@@ -213,10 +213,13 @@ var/global/dmm_suite/preloader/_preloader = new
if(variables_start)//if there's any variable
full_def = copytext(full_def,variables_start+1,length(full_def))//removing the last '}'
fields = readlist(full_def, ";")
for(var/I in fields)
var/value = fields[I]
if(istext(value))
fields[I] = apply_text_macros(value)
if(fields.len)
if(!trim(fields[fields.len]))
--fields.len
for(var/I in fields)
var/value = fields[I]
if(istext(value))
fields[I] = apply_text_macros(value)
//then fill the members_attributes list with the corresponding variables
members_attributes.len++