mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Ensure skin info of finish messages is valid
This commit is contained in:
parent
289b7b08c7
commit
1683304acd
|
@ -357,7 +357,14 @@ void CInfoMessages::OnRaceFinishMessage(const CNetMsg_Sv_RaceFinish *pMsg)
|
|||
CreateNamesIfNotCreated(&Finish);
|
||||
CreateFinishTextContainersIfNotCreated(&Finish);
|
||||
|
||||
AddInfoMsg(EType::TYPE_FINISH, Finish);
|
||||
if(Finish.m_aVictimRenderInfo[0].Valid())
|
||||
{
|
||||
AddInfoMsg(EType::TYPE_FINISH, Finish);
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteTextContainers(&Finish);
|
||||
}
|
||||
|
||||
Graphics()->MapScreen(ScreenX0, ScreenY0, ScreenX1, ScreenY1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue