Merge pull request #1766 from LordSk/fix/broadcast_mapscreen

Fixed broadcast appearing at an odd position
This commit is contained in:
oy 2018-12-03 18:48:08 +01:00 committed by GitHub
commit 497d2fd0bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,8 @@ void CBroadcast::RenderServerBroadcast()
if(m_pClient->m_pChat->IsActive() || m_pClient->Client()->State() != IClient::STATE_ONLINE)
return;
Graphics()->MapScreen(0, 0, Width, Height);
const float Fade = 1.0f - max(0.0f, (DeltaTime - DisplayStartFade) / (DisplayDuration - DisplayStartFade));
CUIRect ScreenRect = {0, 0, Width, Height};