From b1d9e84dcb7fa7b3ddb58eaa0084a9a1e8879082 Mon Sep 17 00:00:00 2001 From: Smith Date: Sun, 24 Mar 2024 21:22:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/Additional_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Additional_data.php b/application/models/Additional_data.php index 9731533..2ef603d 100644 --- a/application/models/Additional_data.php +++ b/application/models/Additional_data.php @@ -653,7 +653,7 @@ public function get_ops_sus_suicides($op_ids = false) AND hit.victim_aid = hit.attacker_aid AND hit.victim_aid = killed.victim_aid AND hit.operation_id = killed.operation_id - AND (hit.frame = killed.frame OR hit.frame = (killed.frame - 1) OR hit.frame = (killed.frame + 1))", 'LEFT') + AND hit.frame IN (killed.frame, GREATEST(killed.frame, 1) - 1, killed.frame + 1)", 'LEFT') ->where("hit.id IS NULL AND killed.event = 'killed' AND killed.victim_aid IS NOT NULL AND killed.victim_aid = killed.attacker_aid"); if ($op_ids !== false) {