CCompoundTargetReticle: Convert unnecessary floats into bools

Using floats here is extremely suspect and almost certainly
unintentional.
This commit is contained in:
Lioncash 2020-04-13 16:54:40 -04:00
parent 1767338aba
commit 85f930ef2e
1 changed files with 4 additions and 4 deletions

View File

@ -117,10 +117,10 @@ void CCompoundTargetReticle::Update(float dt, const CStateManager& mgr) {
} }
if (x20_prevState != x24_nextState && x28_noDrawTicks <= 0) { if (x20_prevState != x24_nextState && x28_noDrawTicks <= 0) {
x20_prevState = x24_nextState; x20_prevState = x24_nextState;
float combat = false; bool combat = false;
float scan = false; bool scan = false;
float xray = false; bool xray = false;
float thermal = false; bool thermal = false;
switch (x24_nextState) { switch (x24_nextState) {
case EReticleState::Combat: case EReticleState::Combat:
combat = true; combat = true;