Don't display blank messages.
This commit is contained in:
parent
a13e22fb85
commit
68fff35e1a
|
@ -336,7 +336,7 @@ void setGameplayMessage(int newMessageType, const char *format, ...)
|
|||
vsprintf(newMessage, format, args);
|
||||
va_end(args);
|
||||
|
||||
if (newMessageType >= messageType && strcmp(message, newMessage))
|
||||
if (strlen(newMessage) > 0 && newMessageType >= messageType && strcmp(message, newMessage))
|
||||
{
|
||||
STRNCPY(message, newMessage, MAX_DESCRIPTION_LENGTH);
|
||||
messageType = newMessageType;
|
||||
|
|
Loading…
Reference in New Issue