Show poll alert for admins anyway (#24817)

* Show poll alert for admins anyway

* Update comment
This commit is contained in:
Mikhail Dzianishchyts
2024-03-26 09:41:12 +00:00
committed by GitHub
parent bdd63fb28b
commit 9dc9d47266
2 changed files with 5 additions and 1 deletions
@@ -365,6 +365,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!check_rights((R_ADMIN | R_MOD), FALSE, user))
return
antagHUD = TRUE
GLOB.antag_hud_users |= user.ckey
for(var/datum/atom_hud/antag/H in GLOB.huds)
H.add_hud_to(src)
@@ -852,6 +853,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
* If allow_roundstart_observers is FALSE (TRUE by default), then any observers who were able to ahud due to joining roundstart will be excluded as well.
*/
/mob/dead/observer/proc/check_ahud_rejoin_eligibility(allow_roundstart_observers = TRUE)
if(check_rights(R_ADMIN | R_MOD, FALSE, src))
return TRUE
if(!GLOB.configuration.general.restrict_antag_hud_rejoin || !has_ahudded())
return TRUE