mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[MIRROR] removes useless helper proc because SIGN() exists (#2905)
* removes num2sign (#56433) * removes useless helper proc because SIGN() exists Co-authored-by: ZeWaka <zewakagamer@gmail.com>
This commit is contained in:
@@ -93,8 +93,8 @@ GLOBAL_VAR_INIT(cmp_field, "name")
|
||||
return A.totalResistance() - B.totalResistance()
|
||||
|
||||
/proc/cmp_quirk_asc(datum/quirk/A, datum/quirk/B)
|
||||
var/a_sign = num2sign(initial(A.value) * -1)
|
||||
var/b_sign = num2sign(initial(B.value) * -1)
|
||||
var/a_sign = SIGN(initial(A.value) * -1)
|
||||
var/b_sign = SIGN(initial(B.value) * -1)
|
||||
|
||||
// Neutral traits go last.
|
||||
if(a_sign == 0)
|
||||
|
||||
@@ -1436,15 +1436,6 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
|
||||
for(var/i in 1 to items_list[each_item])
|
||||
new each_item(where_to)
|
||||
|
||||
|
||||
/proc/num2sign(numeric)
|
||||
if(numeric > 0)
|
||||
return 1
|
||||
else if(numeric < 0)
|
||||
return -1
|
||||
else
|
||||
return 0
|
||||
|
||||
/proc/CallAsync(datum/source, proctype, list/arguments)
|
||||
set waitfor = FALSE
|
||||
return call(source, proctype)(arglist(arguments))
|
||||
|
||||
Reference in New Issue
Block a user