AFK cryoing and window flashing prefs are respected

This commit is contained in:
joep van der velden
2020-10-18 12:39:38 +02:00
parent 668932c256
commit f0600cbc8a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -469,7 +469,7 @@
var/mob/M = C
if(M.client)
C = M.client
if(!C || !C.prefs.toggles2 & PREFTOGGLE_2_WINDOWFLASHING)
if(!C || !(C.prefs.toggles2 & PREFTOGGLE_2_WINDOWFLASHING))
return
winset(C, "mainwindow", "flash=5")
+1 -1
View File
@@ -29,7 +29,7 @@ SUBSYSTEM_DEF(afk)
var/turf/T
// Only players and players with the AFK watch enabled
// No dead, unconcious, restrained, people without jobs or people on other Z levels than the station
if(!H.client || !H.client.prefs.toggles2 & PREFTOGGLE_2_AFKWATCH || !H.mind || \
if(!H.client || !(H.client.prefs.toggles2 & PREFTOGGLE_2_AFKWATCH) || !H.mind || \
H.stat || H.restrained() || !H.job || !is_station_level((T = get_turf(H)).z)) // Assign the turf as last. Small optimization
if(afk_players[H.ckey])
toRemove += H.ckey