Adds some parenthesis to some bitwise operations (#76002)

## About The Pull Request

A set of parenthesis a day keeps weird order of operations away

## Why It's Good For The Game

Might be causing bugs?

## Changelog

🆑 Melbert
fix: Maybe fixes minor bugs in disease cure, revolution, hooded suit
code
/🆑
This commit is contained in:
MrMelbert
2023-06-14 00:09:32 -06:00
committed by GitHub
parent 2578154a92
commit bc38acb206
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -87,7 +87,7 @@
stage = new_stage
/datum/disease/proc/has_cure()
if(!(disease_flags & CURABLE | CHRONIC))
if(!(disease_flags & (CURABLE | CHRONIC)))
return FALSE
. = cures.len
@@ -563,7 +563,7 @@
player.med_hud_set_status()
for(var/datum/job/job as anything in SSjob.joinable_occupations)
if(!(job.departments_bitflags & DEPARTMENT_BITFLAG_SECURITY|DEPARTMENT_BITFLAG_COMMAND))
if(!(job.departments_bitflags & (DEPARTMENT_BITFLAG_SECURITY|DEPARTMENT_BITFLAG_COMMAND)))
continue
job.allow_bureaucratic_error = FALSE
job.total_positions = 0
+2 -2
View File
@@ -33,11 +33,11 @@
ToggleHood()
/obj/item/clothing/suit/hooded/item_action_slot_check(slot, mob/user)
if(slot & ITEM_SLOT_OCLOTHING|ITEM_SLOT_NECK)
if(slot & (ITEM_SLOT_OCLOTHING|ITEM_SLOT_NECK))
return TRUE
/obj/item/clothing/suit/hooded/equipped(mob/user, slot)
if(!(slot & ITEM_SLOT_OCLOTHING|ITEM_SLOT_NECK))
if(!(slot & (ITEM_SLOT_OCLOTHING|ITEM_SLOT_NECK)))
RemoveHood()
return ..()