mirror of https://github.com/PrimeDecomp/prime.git
Match CPlayerState::StartTransitionToVisor
This commit is contained in:
parent
8dd881eab1
commit
e20618ee83
|
@ -40,6 +40,8 @@ static const float kBaseHealthCapacity = 99.f;
|
||||||
static const float kDefaultKnockbackResistance = 50.f;
|
static const float kDefaultKnockbackResistance = 50.f;
|
||||||
static const float kMaxVisorTransitionFactor = 0.2f;
|
static const float kMaxVisorTransitionFactor = 0.2f;
|
||||||
|
|
||||||
|
static inline void do_nothing() {}
|
||||||
|
|
||||||
uint CPlayerState::GetBitCount(uint val) {
|
uint CPlayerState::GetBitCount(uint val) {
|
||||||
int bits = 0;
|
int bits = 0;
|
||||||
for (; val != 0; val >>= 1) {
|
for (; val != 0; val >>= 1) {
|
||||||
|
@ -317,9 +319,13 @@ void CPlayerState::ResetVisor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayerState::StartTransitionToVisor(CPlayerState::EPlayerVisor visor) {
|
void CPlayerState::StartTransitionToVisor(CPlayerState::EPlayerVisor visor) {
|
||||||
if (x18_transitioningVisor == visor)
|
if (visor == x18_transitioningVisor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
x18_transitioningVisor = visor;
|
x18_transitioningVisor = visor;
|
||||||
|
|
||||||
|
if (x18_transitioningVisor == x14_currentVisor)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayerState::UpdateVisorTransition(float dt) {
|
void CPlayerState::UpdateVisorTransition(float dt) {
|
||||||
|
|
Loading…
Reference in New Issue