Fix readability-static-accessed-through-instance

This commit is contained in:
Robert Müller 2023-12-14 21:20:25 +01:00
parent 6a12e209b6
commit aacd37b412
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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;
}