Don't display blank messages.

This commit is contained in:
Steve 2018-02-25 12:36:12 +00:00
parent a13e22fb85
commit 68fff35e1a
1 changed files with 1 additions and 1 deletions

View File

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