mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 02:27:43 +00:00
MkCastTo: Make operator bool instances explicit
Prevents error prone implicit conversions.
This commit is contained in:
@@ -600,7 +600,7 @@ void CSamusHud::UpdateCameraDebugSettings() {
|
||||
}
|
||||
|
||||
void CSamusHud::UpdateEnergyLow(float dt, const CStateManager& mgr) {
|
||||
bool cineCam = TCastToConstPtr<CCinematicCamera>(mgr.GetCameraManager()->GetCurrentCamera(mgr));
|
||||
const bool cineCam = TCastToConstPtr<CCinematicCamera>(mgr.GetCameraManager()->GetCurrentCamera(mgr)).IsValid();
|
||||
float oldTimer = x57c_energyLowTimer;
|
||||
|
||||
x57c_energyLowTimer = std::fmod(x57c_energyLowTimer + dt, 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user