diff --git a/src/game/client/components/mapsounds.cpp b/src/game/client/components/mapsounds.cpp index 704aaa5e6..c333637da 100644 --- a/src/game/client/components/mapsounds.cpp +++ b/src/game/client/components/mapsounds.cpp @@ -199,7 +199,7 @@ void CMapSounds::OnRender() if(Voice.m_pSource->m_PosEnv >= 0) { ColorRGBA Channels; - CMapLayers::EnvelopeEval(Voice.m_pSource->m_PosEnvOffset, Voice.m_pSource->m_PosEnv, Channels, &m_pClient->m_MapLayersBackGround); + CMapLayers::EnvelopeEval(Voice.m_pSource->m_PosEnvOffset, Voice.m_pSource->m_PosEnv, Channels, &m_pClient->m_MapLayersBackground); OffsetX = Channels.r; OffsetY = Channels.g; } @@ -218,7 +218,7 @@ void CMapSounds::OnRender() if(Voice.m_pSource->m_SoundEnv >= 0) { ColorRGBA Channels; - CMapLayers::EnvelopeEval(Voice.m_pSource->m_SoundEnvOffset, Voice.m_pSource->m_SoundEnv, Channels, &m_pClient->m_MapLayersBackGround); + CMapLayers::EnvelopeEval(Voice.m_pSource->m_SoundEnvOffset, Voice.m_pSource->m_SoundEnv, Channels, &m_pClient->m_MapLayersBackground); float Volume = clamp(Channels.r, 0.0f, 1.0f); Sound()->SetVoiceVolume(Voice.m_Voice, Volume); diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index aa8078b9f..1cb2a4dd8 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -89,8 +89,8 @@ void CMenus::HandleDemoSeeking(float PositionToSeek, float TimeToSeek) else DemoPlayer()->SeekPercent(PositionToSeek); m_pClient->m_SuppressEvents = false; - m_pClient->m_MapLayersBackGround.EnvelopeUpdate(); - m_pClient->m_MapLayersForeGround.EnvelopeUpdate(); + m_pClient->m_MapLayersBackground.EnvelopeUpdate(); + m_pClient->m_MapLayersForeground.EnvelopeUpdate(); if(!DemoPlayer()->BaseInfo()->m_Paused && PositionToSeek == 1.0f) DemoPlayer()->Pause(); } @@ -102,8 +102,8 @@ void CMenus::DemoSeekTick(IDemoPlayer::ETickOffset TickOffset) DemoPlayer()->SeekTick(TickOffset); m_pClient->m_SuppressEvents = false; DemoPlayer()->Pause(); - m_pClient->m_MapLayersBackGround.EnvelopeUpdate(); - m_pClient->m_MapLayersForeGround.EnvelopeUpdate(); + m_pClient->m_MapLayersBackground.EnvelopeUpdate(); + m_pClient->m_MapLayersForeground.EnvelopeUpdate(); } void CMenus::RenderDemoPlayer(CUIRect MainView) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 5a47f1ca5..1a98e0c99 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -3127,8 +3127,8 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView) static CButtonContainer s_BackgroundEntitiesReloadButton; if(DoButton_Menu(&s_BackgroundEntitiesReloadButton, Localize("Reload"), 0, &Button)) { - if(str_comp(g_Config.m_ClBackgroundEntities, m_pClient->m_BackGround.MapName()) != 0) - m_pClient->m_BackGround.LoadBackground(); + if(str_comp(g_Config.m_ClBackgroundEntities, m_pClient->m_Background.MapName()) != 0) + m_pClient->m_Background.LoadBackground(); } Background.HSplitTop(20.0f, &Button, &Background); @@ -3140,7 +3140,7 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView) g_Config.m_ClBackgroundEntities[0] = '\0'; else str_copy(g_Config.m_ClBackgroundEntities, CURRENT_MAP); - m_pClient->m_BackGround.LoadBackground(); + m_pClient->m_Background.LoadBackground(); } Background.HSplitTop(20.0f, &Button, &Background); diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index ae72bcdf9..e6d11e647 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -118,13 +118,13 @@ void CGameClient::OnConsoleInit() &m_Particles, // doesn't render anything, just updates all the particles &m_RaceDemo, &m_MapSounds, - &m_BackGround, // render instead of m_MapLayersBackGround when g_Config.m_ClOverlayEntities == 100 - &m_MapLayersBackGround, // first to render + &m_Background, // render instead of m_MapLayersBackground when g_Config.m_ClOverlayEntities == 100 + &m_MapLayersBackground, // first to render &m_Particles.m_RenderTrail, &m_Items, &m_Players, &m_Ghost, - &m_MapLayersForeGround, + &m_MapLayersForeground, &m_Particles.m_RenderExplosions, &m_NamePlates, &m_Particles.m_RenderExtra, diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index d758e07a5..b99a76e9e 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -141,9 +141,9 @@ public: CItems m_Items; CMapImages m_MapImages; - CMapLayers m_MapLayersBackGround = CMapLayers{CMapLayers::TYPE_BACKGROUND}; - CMapLayers m_MapLayersForeGround = CMapLayers{CMapLayers::TYPE_FOREGROUND}; - CBackground m_BackGround; + CMapLayers m_MapLayersBackground = CMapLayers{CMapLayers::TYPE_BACKGROUND}; + CMapLayers m_MapLayersForeground = CMapLayers{CMapLayers::TYPE_FOREGROUND}; + CBackground m_Background; CMenuBackground m_MenuBackground; CMapSounds m_MapSounds;