mirror of https://github.com/AxioDL/metaforce.git
CCompoundTargetReticle: Convert unnecessary floats into bools
Using floats here is extremely suspect and almost certainly unintentional.
This commit is contained in:
parent
1767338aba
commit
85f930ef2e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue