[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
+1 -1
View File
@@ -128,7 +128,7 @@
if (new_fax_name != fax_name)
if (fax_name_exist(new_fax_name))
// Being able to set the same name as another fax machine will give a lot of gimmicks for the traitor.
if (syndicate_network != TRUE && obj_flags != EMAGGED)
if (syndicate_network != TRUE && !(obj_flags & EMAGGED))
to_chat(user, span_warning("There is already a fax machine with this name on the network."))
return TOOL_ACT_TOOLTYPE_SUCCESS
user.log_message("renamed [fax_name] (fax machine) to [new_fax_name].", LOG_GAME)