messagemode/commandmode: clear the string on entering the mode
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Jun 2009 15:01:45 +0000 (15:01 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Jun 2009 15:01:45 +0000 (15:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9025 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index c8bdf14..7d49db5 100644 (file)
--- 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;
 }
 
 /*