From c5bafc7b4cdb4eab99a4234d4c6bb88fdccb1f36 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Thu, 18 Jan 2024 14:55:10 -0700 Subject: [PATCH] Clear HUD messages on level transition --- src/p_setup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 604f29b06..2e6eb31c0 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -114,6 +114,7 @@ #include "k_mapuser.h" #include "music.h" #include "k_dialogue.h" +#include "k_hud.h" // K_ClearPersistentMessages // Replay names have time #if !defined (UNDER_CE) @@ -8482,6 +8483,8 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate) R_InitMobjInterpolators(); P_InitCachedActions(); + K_ClearPersistentMessages(); + // internal game map maplumpname = mapheaderinfo[gamemap-1]->lumpname; lastloadedmaplumpnum = mapheaderinfo[gamemap-1]->lumpnum;