mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix readability-static-accessed-through-instance
This commit is contained in:
parent
6a12e209b6
commit
aacd37b412
|
@ -1634,7 +1634,7 @@ int CMenus::Render()
|
|||
|
||||
char aFilePath[IO_MAX_PATH_LENGTH];
|
||||
char aSaveFolder[IO_MAX_PATH_LENGTH];
|
||||
Storage()->GetCompletePath(Storage()->TYPE_SAVE, "videos", aSaveFolder, sizeof(aSaveFolder));
|
||||
Storage()->GetCompletePath(IStorage::TYPE_SAVE, "videos", aSaveFolder, sizeof(aSaveFolder));
|
||||
str_format(aFilePath, sizeof(aFilePath), "%s/%s.mp4", aSaveFolder, m_DemoRenderInput.GetString());
|
||||
|
||||
Box.HSplitBottom(20.f, &Box, &Part);
|
||||
|
@ -2008,7 +2008,7 @@ void CMenus::OnRender()
|
|||
RenderDemoPlayer(*UI()->Screen());
|
||||
}
|
||||
|
||||
if(Client()->State() == IClient::STATE_ONLINE && m_pClient->m_ServerMode == m_pClient->SERVERMODE_PUREMOD)
|
||||
if(Client()->State() == IClient::STATE_ONLINE && m_pClient->m_ServerMode == CGameClient::SERVERMODE_PUREMOD)
|
||||
{
|
||||
Client()->Disconnect();
|
||||
SetActive(true);
|
||||
|
|
|
@ -1197,7 +1197,7 @@ CUI::EPopupMenuFunctionResult CLayerTiles::RenderCommonProperties(SCommonPropSta
|
|||
{
|
||||
if(NewVal > 1000 && !pEditor->m_LargeLayerWasWarned)
|
||||
{
|
||||
pEditor->m_PopupEventType = pEditor->POPEVENT_LARGELAYER;
|
||||
pEditor->m_PopupEventType = CEditor::POPEVENT_LARGELAYER;
|
||||
pEditor->m_PopupEventActivated = true;
|
||||
pEditor->m_LargeLayerWasWarned = true;
|
||||
}
|
||||
|
@ -1207,7 +1207,7 @@ CUI::EPopupMenuFunctionResult CLayerTiles::RenderCommonProperties(SCommonPropSta
|
|||
{
|
||||
if(NewVal > 1000 && !pEditor->m_LargeLayerWasWarned)
|
||||
{
|
||||
pEditor->m_PopupEventType = pEditor->POPEVENT_LARGELAYER;
|
||||
pEditor->m_PopupEventType = CEditor::POPEVENT_LARGELAYER;
|
||||
pEditor->m_PopupEventActivated = true;
|
||||
pEditor->m_LargeLayerWasWarned = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue