From 69714472743d079039e1765e55488e76a241a28d Mon Sep 17 00:00:00 2001 From: z411 Date: Fri, 11 Mar 2022 01:39:39 -0300 Subject: [PATCH] Fixed adding empty message when attempting to kill a non-existent message --- qcsrc/client/hud/panel/centerprint.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index f37d0c24a..abc53c0c4 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -96,6 +96,9 @@ void centerprint_Add(int new_id, string strMessage, float duration, int countdow } } + if (strMessage == "") + return; + if (i == CENTERPRINT_MAX_MSGS) { // a msg with the same id was not found, add the msg at the next position -- 2.39.2