Tweaks the listdiff proc to work as prior to avoid runtimes

I adjusted the noir glasses accordingly so that they would work with this
This commit is contained in:
Crazylemon64
2016-12-30 00:53:52 -08:00
parent 7498382909
commit 017f7c2776
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -116,8 +116,7 @@
else
result = first - second
if(result.len)
return result
return result
/*
* Returns list containing entries that are in either list but not both.
+3 -3
View File
@@ -259,10 +259,10 @@
if(slot == slot_glasses)
if(noir_mode)
if(color_view && user.client && (!user.client.color || difference))
if(color_view && user.client && (!user.client.color || difference.len))
animate(user.client, color = color_view, time = 10)
else
if(user.client && user.client.color && !difference)
if(user.client && user.client.color && !difference.len)
animate(user.client, color = initial(user.client.color), time = 10)
..(user, slot)
@@ -270,7 +270,7 @@
var/list/difference = difflist(user.client.color, color_view)
if(istype(user) && user.glasses == src)
if(user.client && user.client.color && !difference)
if(user.client && user.client.color && !difference.len)
animate(user.client, color = initial(user.client.color), time = 10)
..(user)