Fixed bug where helmet lights would not turn off when placed in backpacks and updated changelog

This commit is contained in:
Albert Iordache
2012-07-10 22:14:08 +03:00
parent f7c41f6b42
commit a2ef50ed29
2 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -183,8 +183,8 @@
/obj/item/clothing/head/helmet/space/rig/dropped(mob/user)
if(on)
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + (brightness_on - 1), user.LuminosityBlue)
ul_SetLuminosity(brightness_on, brightness_on-1, 0)
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - (brightness_on - 1), user.LuminosityBlue)
ul_SetLuminosity(brightness_on, brightness_on - 1, 0)
// the desk lamps are a bit special
/obj/item/device/flashlight/lamp