mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 18:57:03 +00:00
CActor: Make Render() a non-const function
A few implementations of Render() contain const-casts nested within its their call hierarchy to get around the fact that this function is marked const. We can just make the member function non-const to allow removal of these casts in follow up changes.
This commit is contained in:
@@ -151,7 +151,7 @@ void CBeetle::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) {
|
||||
CPatterned::PreRender(mgr, frustum);
|
||||
}
|
||||
|
||||
void CBeetle::Render(const CStateManager& mgr) const {
|
||||
void CBeetle::Render(CStateManager& mgr) {
|
||||
if (x3fc_flavor == EFlavorType::One && x400_25_alive) {
|
||||
zeus::CTransform tailXf = GetLctrTransform("Target_Tail"sv);
|
||||
if (x428_damageCooldownTimer >= 0.f && x42c_color.a() == 1.f) {
|
||||
|
||||
Reference in New Issue
Block a user