From 03c78ea8a5407e865799e35366e4aff0cdc5997f Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 28 May 2025 18:41:15 -0400 Subject: [PATCH] I forgor these return 0 on match --- src/p_spec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index b841cc5da..ff7fdc219 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -3227,17 +3227,17 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha if (stringargs[0]) { - if (strcasecmp(stringargs[0], "PW_FLASHING")) + if (!strcasecmp(stringargs[0], "PW_FLASHING")) { mo->player->flashing = value; break; } - else if (strcasecmp(stringargs[0], "PW_NOCONTROL")) + else if (!strcasecmp(stringargs[0], "PW_NOCONTROL")) { mo->player->nocontrol = value; break; } - else if (strcasecmp(stringargs[0], "PW_EMERALDS")) + else if (!strcasecmp(stringargs[0], "PW_EMERALDS")) { mo->player->emeralds = value; break;