[MIRROR] Properly checks flags with & instead of == [MDB IGNORE] (#16487)

* Properly checks flags with & instead of ==

* merge fixed for changeling

* skyrat equipment updated

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-09-28 16:38:59 -04:00
committed by GitHub
co-authored by John Willard Tastyfish
parent de331bbe60
commit 32db6d2411
84 changed files with 115 additions and 115 deletions
+2 -2
View File
@@ -240,7 +240,7 @@
/obj/item/mod/control/equipped(mob/user, slot)
..()
if(slot == slot_flags)
if(slot & slot_flags)
set_wearer(user)
else if(wearer)
unset_wearer()
@@ -252,7 +252,7 @@
clean_up()
/obj/item/mod/control/item_action_slot_check(slot)
if(slot == slot_flags)
if(slot & slot_flags)
return TRUE
/obj/item/mod/control/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change = TRUE)