From 85f930ef2e06bf590b29c126663aeed32d749c5e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 13 Apr 2020 16:54:40 -0400 Subject: [PATCH] CCompoundTargetReticle: Convert unnecessary floats into bools Using floats here is extremely suspect and almost certainly unintentional. --- Runtime/GuiSys/CCompoundTargetReticle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/GuiSys/CCompoundTargetReticle.cpp b/Runtime/GuiSys/CCompoundTargetReticle.cpp index 49e553d1f..4c7c5fa50 100644 --- a/Runtime/GuiSys/CCompoundTargetReticle.cpp +++ b/Runtime/GuiSys/CCompoundTargetReticle.cpp @@ -117,10 +117,10 @@ void CCompoundTargetReticle::Update(float dt, const CStateManager& mgr) { } if (x20_prevState != x24_nextState && x28_noDrawTicks <= 0) { x20_prevState = x24_nextState; - float combat = false; - float scan = false; - float xray = false; - float thermal = false; + bool combat = false; + bool scan = false; + bool xray = false; + bool thermal = false; switch (x24_nextState) { case EReticleState::Combat: combat = true;