diff --git a/source/simulation2/components/ICmpOverlayRenderer.h b/source/simulation2/components/ICmpOverlayRenderer.h index 962dc67014..135179636e 100644 --- a/source/simulation2/components/ICmpOverlayRenderer.h +++ b/source/simulation2/components/ICmpOverlayRenderer.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2025 Wildfire Games. +/* Copyright (C) 2026 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -54,19 +54,7 @@ public: */ virtual void AddSprite(const VfsPath& textureName, const CFixedVector2D& corner0, const CFixedVector2D& corner1, const CFixedVector3D& offset, const std::string& color = "255 255 255 255") = 0; - /** - * Enables or disables rendering of all sprites. - * @param visible Whether the selectable should be visible. - */ - static void SetOverrideVisibility(bool visible) - { - ICmpOverlayRenderer::m_OverrideVisible = visible; - } - DECLARE_INTERFACE_TYPE(OverlayRenderer) - -protected: - static bool m_OverrideVisible; }; #endif // INCLUDED_ICMPOVERLAYRENDERER diff --git a/source/simulation2/components/ICmpSelectable.cpp b/source/simulation2/components/ICmpSelectable.cpp index f9b31c5c71..6813a45016 100644 --- a/source/simulation2/components/ICmpSelectable.cpp +++ b/source/simulation2/components/ICmpSelectable.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2021 Wildfire Games. +/* Copyright (C) 2026 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -29,4 +29,3 @@ DEFINE_INTERFACE_METHOD("UpdateColor", ICmpSelectable, UpdateColor) END_INTERFACE_WRAPPER(Selectable) bool ICmpSelectable::ms_EnableDebugOverlays = false; -bool ICmpSelectable::m_OverrideVisible = true; diff --git a/source/simulation2/components/ICmpSelectable.h b/source/simulation2/components/ICmpSelectable.h index f98ab9d842..5b7a3409a9 100644 --- a/source/simulation2/components/ICmpSelectable.h +++ b/source/simulation2/components/ICmpSelectable.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2025 Wildfire Games. +/* Copyright (C) 2026 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -47,15 +47,6 @@ public: */ virtual void SetVisibility(bool visible) = 0; - /** - * Enables or disables rendering of all entities selectable. - * @param visible Whether the selectable should be visible. - */ - static void SetOverrideVisibility(bool visible) - { - ICmpSelectable::m_OverrideVisible = visible; - } - /** * Updates the selection color to match the current owner. */ @@ -72,9 +63,6 @@ public: // and methods, where we can keep settings like these. Note that any such data store would need to be per-component-manager // and not entirely global, to support multiple simulation instances. static bool ms_EnableDebugOverlays; // ms for member static - -protected: - static bool m_OverrideVisible; }; #endif // INCLUDED_ICMPSELECTABLE