mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user