Fixes bitwise flag negation errors. (#58870)

These have been in the codebase for many years. Love, ZeWaka
This commit is contained in:
ZeWaka
2021-05-05 01:37:56 -04:00
committed by GitHub
parent d3fe5187b0
commit b86aaf3307
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
var/datum/species/species = H.dna.species
if(initial(species.liked_food) & MEAT)
species.liked_food |= MEAT
if(!initial(species.disliked_food) & MEAT)
if(!(initial(species.disliked_food) & MEAT))
species.disliked_food &= ~MEAT
/datum/quirk/snob
+1 -1
View File
@@ -126,7 +126,7 @@
to_chat(user, "<span class='danger'>Throwing [pushed_mob] onto the table might hurt them!</span>")
return
var/added_passtable = FALSE
if(!pushed_mob.pass_flags & PASSTABLE)
if(!(pushed_mob.pass_flags & PASSTABLE))
added_passtable = TRUE
pushed_mob.pass_flags |= PASSTABLE
pushed_mob.Move(src.loc)
+1 -1
View File
@@ -178,7 +178,7 @@
chosen_candidate.client.prefs.copy_to(ert_operative)
ert_operative.key = chosen_candidate.key
if(ertemplate.enforce_human || !ert_operative.dna.species.changesource_flags & ERT_SPAWN) // Don't want any exploding plasmemes
if(ertemplate.enforce_human || !(ert_operative.dna.species.changesource_flags & ERT_SPAWN)) // Don't want any exploding plasmemes
ert_operative.set_species(/datum/species/human)
//Give antag datum
@@ -30,7 +30,7 @@
var/check = FALSE
if(ismob(target))
var/mob/living/mobster = target
if(!mobster.mob_biotypes & MOB_ROBOTIC)
if(!(mobster.mob_biotypes & MOB_ROBOTIC))
return FALSE
else
check = TRUE
+1 -1
View File
@@ -96,7 +96,7 @@
// If the machinery is not in view or is not meant to be seen, continue
if(!in_view_range(client.mob, pipenet_part))
continue
if(!pipenet_part.vent_movement & VENTCRAWL_CAN_SEE)
if(!(pipenet_part.vent_movement & VENTCRAWL_CAN_SEE))
continue
if(!pipenet_part.pipe_vision_img)
@@ -251,7 +251,7 @@
software_error()
/datum/nanite_program/proc/on_shock(shock_damage)
if(!program_flags & NANITE_SHOCK_IMMUNE)
if(!(program_flags & NANITE_SHOCK_IMMUNE))
if(prob(10))
host_mob.investigate_log("[src] nanite program received a software error due to shock.", INVESTIGATE_NANITES)
software_error()
@@ -260,7 +260,7 @@
qdel(src)
/datum/nanite_program/proc/on_minor_shock()
if(!program_flags & NANITE_SHOCK_IMMUNE)
if(!(program_flags & NANITE_SHOCK_IMMUNE))
if(prob(10))
host_mob.investigate_log("[src] nanite program received a software error due to minor shock.", INVESTIGATE_NANITES)
software_error()
@@ -248,7 +248,7 @@
h_boost *= -2
else if(chassis.internal_damage && DT_PROB(8, delta_time))
for(var/int_dam_flag in repairable_damage)
if(!chassis.internal_damage & int_dam_flag)
if(!(chassis.internal_damage & int_dam_flag))
continue
chassis.clear_internal_damage(int_dam_flag)
repaired = TRUE