code folder. 221 files changed wew
This commit is contained in:
@@ -319,9 +319,10 @@
|
||||
break
|
||||
|
||||
/proc/get_mob_by_key(key)
|
||||
var/ckey = ckey(key)
|
||||
for(var/i in GLOB.player_list)
|
||||
var/mob/M = i
|
||||
if(M.ckey == lowertext(key))
|
||||
if(M.ckey == ckey)
|
||||
return M
|
||||
return null
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
|
||||
while(parent > 0 && (call(cmp)(L[index],L[parent]) > 0))
|
||||
L.Swap(index,parent)
|
||||
|
||||
index = parent
|
||||
parent = round(index * 0.5)
|
||||
|
||||
@@ -68,6 +67,7 @@
|
||||
//Replaces a given node so it verify the heap condition
|
||||
/datum/Heap/proc/ReSort(atom/A)
|
||||
var/index = L.Find(A)
|
||||
|
||||
Swim(index)
|
||||
Sink(index)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user