From: divverent Date: Sat, 20 Jun 2009 15:01:45 +0000 (+0000) Subject: messagemode/commandmode: clear the string on entering the mode X-Git-Tag: xonotic-v0.1.0preview~1598 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=29d773051e1523e760cf927305c7142da756dc2d;p=xonotic%2Fdarkplaces.git messagemode/commandmode: clear the string on entering the mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9025 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index c8bdf140..7d49db56 100644 --- a/console.c +++ b/console.c @@ -610,6 +610,8 @@ void Con_MessageMode_f (void) { key_dest = key_message; chat_mode = 0; // "say" + chat_bufferlen = 0; + chat_buffer[0] = 0; } @@ -622,6 +624,8 @@ void Con_MessageMode2_f (void) { key_dest = key_message; chat_mode = 1; // "say_team" + chat_bufferlen = 0; + chat_buffer[0] = 0; } /*