From 9824152c4b10fe9089d9839aa76547d7c1ab9062 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Thu, 10 Mar 2022 20:02:25 +0000 Subject: [PATCH] Fix or bin operation --- src/module/client_command.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module/client_command.cpp b/src/module/client_command.cpp index 5fbad50..e0f02a2 100644 --- a/src/module/client_command.cpp +++ b/src/module/client_command.cpp @@ -74,7 +74,7 @@ private: if (!cheats_ok(ent)) return; - ent->flags = game::native::FL_GODMODE; + ent->flags ^= game::native::FL_GODMODE; send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE, utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_GODMODE) @@ -86,7 +86,7 @@ private: if (!cheats_ok(ent)) return; - ent->flags = game::native::FL_DEMI_GODMODE; + ent->flags ^= game::native::FL_DEMI_GODMODE; send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE, utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_DEMI_GODMODE) @@ -98,7 +98,7 @@ private: if (!cheats_ok(ent)) return; - ent->flags = game::native::FL_NOTARGET; + ent->flags ^= game::native::FL_NOTARGET; send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE, utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_NOTARGET)