Some tweaks and fixes for UL and any while loops I find, as well as removing generally bad procs.

This commit is contained in:
SkyMarshal
2012-06-22 12:49:54 -07:00
parent f4ba1a40c3
commit 668f81c329
15 changed files with 29 additions and 39 deletions

View File

@@ -46,11 +46,11 @@
proc/check_all_steps(atom/used_atom,mob/user as mob) //check all steps, remove matching one.
for(var/i=1;i<=steps.len;i++)
var/list/L = steps[i];
var/list/L = steps[i]
if(istype(used_atom, L["key"]))
if(custom_action(i, used_atom, user))
steps[i]=null;//stupid byond list from list removal...
listclearnulls(steps);
steps[i]=null//stupid byond list from list removal...
steps.Remove(null)
if(!steps.len)
spawn_result()
return 1