* prevent the same item from being selected multiple times when looking for parts while table crafting (fixes #4820)

* small typo in construction fixed
This commit is contained in:
Menshin
2014-09-15 19:20:47 +02:00
parent 96cf5cdedd
commit d519501425
+3 -1
View File
@@ -262,6 +262,7 @@
while(amt > 0)
I = locate(B) in loc
Deletion.Add(I)
I.loc = null //remove it from the table loc so that we don't locate the same item every time (will be relocated inside the crafted item in construct_item())
amt--
break item_loop
else
@@ -286,6 +287,7 @@
if(!istype(B, A))
Deletion.Remove(B)
qdel(B)
return Deletion
/obj/structure/table/interact(mob/user)
@@ -295,7 +297,7 @@
var/dat = "<h3>Construction menu</h3>"
dat += "<div class='statusDisplay'>"
if(busy)
dat += "Construction inprogress...</div>"
dat += "Construction in progress...</div>"
else
for(var/datum/table_recipe/R in table_recipes)
if(check_contents(R))