diff --git a/src/game/g_func.c b/src/game/g_func.c index 334960d8..c270a21e 100644 --- a/src/game/g_func.c +++ b/src/game/g_func.c @@ -1378,7 +1378,7 @@ door_go_down(edict_t *self) void door_go_up(edict_t *self, edict_t *activator) { - if (!self || !activator) + if (!self) { return; } diff --git a/src/game/g_utils.c b/src/game/g_utils.c index 7a80210e..fa7e9453 100644 --- a/src/game/g_utils.c +++ b/src/game/g_utils.c @@ -242,13 +242,8 @@ G_UseTargets(edict_t *ent, edict_t *activator) return; } - if (!activator) - { - return; - } - /* print the message */ - if ((ent->message) && !(activator->svflags & SVF_MONSTER)) + if (activator && (ent->message) && !(activator->svflags & SVF_MONSTER)) { gi.centerprintf(activator, "%s", ent->message);