fixed custom items loaded and custom_items.txt

This commit is contained in:
Tastyfish
2012-01-12 01:54:27 -05:00
parent b5c8b89a4d
commit 9e5925b1f9
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -12,7 +12,7 @@
for(var/line in lines)
// split & clean up
var/list/Entry = dd_text2list(line, ":")
for(var/i = 1 to parts.len)
for(var/i = 1 to Entry.len)
Entry[i] = trim(Entry[i])
if(Entry.len < 3)
@@ -20,7 +20,7 @@
if(Entry[1] == M.ckey && Entry[2] == M.real_name)
var/list/Paths = dd_text2list(Entry[3], ",")
for(P in Paths)
for(var/P in Paths)
var/ok = 0 // 1 if the item was placed successfully
P = trim(P)
var/path = text2path(P)
@@ -37,4 +37,4 @@
break
if (ok == 0) // Finally, since everything else failed, place it on the ground
Item.loc = get_turf(M.loc)
Item.loc = get_turf(M.loc)