Use a more standard if conditionnal way.

This commit is contained in:
Arkshine 2014-05-13 14:09:45 +02:00
parent f5921a3535
commit 1c13d0dd6b

View File

@ -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);