mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void OnReset(void) {
|
static void ClearCPEMessages(void) {
|
||||||
CloseLogFile();
|
|
||||||
ResetLogFile();
|
|
||||||
|
|
||||||
/* reset CPE messages */
|
|
||||||
Chat_AddOf(&String_Empty, MSG_TYPE_ANNOUNCEMENT);
|
Chat_AddOf(&String_Empty, MSG_TYPE_ANNOUNCEMENT);
|
||||||
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_1);
|
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_1);
|
||||||
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_2);
|
Chat_AddOf(&String_Empty, MSG_TYPE_STATUS_2);
|
||||||
@ -631,8 +627,15 @@ static void OnReset(void) {
|
|||||||
Chat_AddOf(&String_Empty, MSG_TYPE_BOTTOMRIGHT_3);
|
Chat_AddOf(&String_Empty, MSG_TYPE_BOTTOMRIGHT_3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void OnReset(void) {
|
||||||
|
CloseLogFile();
|
||||||
|
ResetLogFile();
|
||||||
|
ClearCPEMessages();
|
||||||
|
}
|
||||||
|
|
||||||
static void OnFree(void) {
|
static void OnFree(void) {
|
||||||
CloseLogFile();
|
CloseLogFile();
|
||||||
|
ClearCPEMessages();
|
||||||
cmds_head = NULL;
|
cmds_head = NULL;
|
||||||
|
|
||||||
if (Chat_LogTime != defaultLogTimes) Mem_Free(Chat_LogTime);
|
if (Chat_LogTime != defaultLogTimes) Mem_Free(Chat_LogTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user