Skip to content

Commit 0483b29

Browse files
authored
Fix area name showing for a second when joining to server for first time (#4549)
* Fix area name showing for a second when joining to server for first time
1 parent 46cdd9d commit 0483b29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Client/mods/deathmatch/logic/CPacketHandler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ void CPacketHandler::Packet_ServerConnected(NetBitStreamInterface& bitStream)
309309
if (g_pGame->GetSystemState() == SystemState::GS_FRONTEND)
310310
{
311311
g_pGame->StartGame();
312+
313+
// Fix area name showing for a second when joining to server for first time
314+
// HUD_AREA_NAME will be made visible later in the process when the camera fades in (CCameraRPCs::FadeCamera)
315+
g_pGame->GetHud()->SetComponentVisible(HUD_AREA_NAME, false);
312316
}
313317
}
314318

0 commit comments

Comments
 (0)