mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 17:21:24 +00:00
Cleanup chatbox reset code
This commit is contained in:
parent
d9bc478822
commit
34ad64ba59
1 changed files with 2 additions and 7 deletions
|
@ -966,7 +966,6 @@ static void HU_queueChatChar(char c)
|
||||||
{
|
{
|
||||||
char buf[2+256];
|
char buf[2+256];
|
||||||
char *msg = &buf[2];
|
char *msg = &buf[2];
|
||||||
size_t i = 0;
|
|
||||||
size_t ci = 2;
|
size_t ci = 2;
|
||||||
INT32 target = 0;
|
INT32 target = 0;
|
||||||
|
|
||||||
|
@ -980,9 +979,7 @@ static void HU_queueChatChar(char c)
|
||||||
buf[ci-1]=c;
|
buf[ci-1]=c;
|
||||||
} while (c);
|
} while (c);
|
||||||
|
|
||||||
for (;(i<HU_MAXMSGLEN);i++)
|
memset(w_chat, '\0', HU_MAXMSGLEN);
|
||||||
w_chat[i] = 0; // reset this.
|
|
||||||
|
|
||||||
c_input = 0;
|
c_input = 0;
|
||||||
|
|
||||||
// last minute mute check
|
// last minute mute check
|
||||||
|
@ -1065,9 +1062,7 @@ static void HU_queueChatChar(char c)
|
||||||
|
|
||||||
void HU_clearChatChars(void)
|
void HU_clearChatChars(void)
|
||||||
{
|
{
|
||||||
size_t i = 0;
|
memset(w_chat, '\0', HU_MAXMSGLEN);
|
||||||
for (;i<HU_MAXMSGLEN;i++)
|
|
||||||
w_chat[i] = 0; // reset this.
|
|
||||||
chat_on = false;
|
chat_on = false;
|
||||||
c_input = 0;
|
c_input = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue