Don't display empty messages

This commit is contained in:
simon.kagstrom 2010-08-15 11:29:03 +00:00
parent 89955d1517
commit 9b4b1dfe94

View File

@ -190,7 +190,7 @@ void C64::network_vblank()
this->TheDisplay->Update(remote->GetScreen()); this->TheDisplay->Update(remote->GetScreen());
} }
const char *msg = TheDisplay->GetTextMessage(); const char *msg = TheDisplay->GetTextMessage();
if (msg) if (msg && strlen(msg) > 0)
remote->EncodeTextMessage(msg, TheDisplay->text_message_broadcast); remote->EncodeTextMessage(msg, TheDisplay->text_message_broadcast);
free((void *)msg); free((void *)msg);