mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Android: Fix if you quit multiplayer and start singleplayer, any CPE messages that were previously showing still show in singleplayer (Thanks 123DMWM)
This commit is contained in:
parent
81f5e829e6
commit
65d3f399d4
13
src/Chat.c
13
src/Chat.c
@ -617,11 +617,7 @@ static void OnInit(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
static void OnReset(void) {
|
||||
CloseLogFile();
|
||||
ResetLogFile();
|
||||
|
||||
/* reset CPE messages */
|
||||
static void ClearCPEMessages(void) {
|
||||
Chat_AddOf(&String_Empty, MSG_TYPE_ANNOUNCEMENT);
|
||||
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_1);
|
||||
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_2);
|
||||
@ -631,8 +627,15 @@ static void OnReset(void) {
|
||||
Chat_AddOf(&String_Empty, MSG_TYPE_BOTTOMRIGHT_3);
|
||||
}
|
||||
|
||||
static void OnReset(void) {
|
||||
CloseLogFile();
|
||||
ResetLogFile();
|
||||
ClearCPEMessages();
|
||||
}
|
||||
|
||||
static void OnFree(void) {
|
||||
CloseLogFile();
|
||||
ClearCPEMessages();
|
||||
cmds_head = NULL;
|
||||
|
||||
if (Chat_LogTime != defaultLogTimes) Mem_Free(Chat_LogTime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user