From 1c13d0dd6bb21ad40fecea1deb0c725091dc0dd6 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 13 May 2014 14:09:45 +0200 Subject: [PATCH] Use a more standard if conditionnal way. --- plugins/include/message_stocks.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/include/message_stocks.inc b/plugins/include/message_stocks.inc index 7552648a..6c39e33f 100644 --- a/plugins/include/message_stocks.inc +++ b/plugins/include/message_stocks.inc @@ -103,7 +103,11 @@ stock client_printex(index, type, const msg_name[], const msg_param1[] = "", con return client_print(index, type, msg_name, msg_param1, msg_param2, msg_param3, msg_param4); } - static msgTextMsg; msgTextMsg || (msgTextMsg = get_user_msgid("TextMsg")); + static msgTextMsg; + if (!msgTextMsg) + { + msgTextMsg = get_user_msgid("TextMsg"); + } message_begin(index > 0 ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgTextMsg, .player = index); write_byte(type);