mirror of https://github.com/PrimeDecomp/prime.git
parent
0b24eb18af
commit
7c7f523da0
|
@ -204,7 +204,7 @@ LIBS = [
|
|||
["MetroidPrime/BodyState/CBSSlide", False],
|
||||
"MetroidPrime/BodyState/CBSHurled",
|
||||
"MetroidPrime/BodyState/CBSJump",
|
||||
["MetroidPrime/BodyState/CBSGenerate", False],
|
||||
["MetroidPrime/BodyState/CBSGenerate", True],
|
||||
"MetroidPrime/Enemies/CPuddleSpore",
|
||||
"MetroidPrime/BodyState/CBSTaunt",
|
||||
"MetroidPrime/CSortedLists",
|
||||
|
|
|
@ -169,7 +169,7 @@ METROIDPRIME :=\
|
|||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CBSSlide.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CBSHurled.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CBSJump.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CBSGenerate.o\
|
||||
$(BUILD_DIR)/src/MetroidPrime/BodyState/CBSGenerate.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/Enemies/CPuddleSpore.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/BodyState/CBSTaunt.o\
|
||||
$(BUILD_DIR)/asm/MetroidPrime/CSortedLists.o\
|
||||
|
|
|
@ -40,8 +40,9 @@ pas::EAnimationState CBSGenerate::UpdateBody(float dt, CBodyController& bc,
|
|||
CStateManager& mgr) override {
|
||||
const pas::EAnimationState st = GetBodyStateTransition(dt, bc);
|
||||
if (st == pas::kAS_Invalid) {
|
||||
if (bc.GetCommandMgr().GetTargetVector().IsNonZero()) {
|
||||
bc.FaceDirection(bc.GetCommandMgr().GetTargetVector(), dt);
|
||||
CBodyStateCmdMgr& commandMgr = bc.CommandMgr();
|
||||
if (commandMgr.GetTargetVector().IsNonZero()) {
|
||||
bc.FaceDirection(commandMgr.GetTargetVector(), dt);
|
||||
}
|
||||
}
|
||||
return st;
|
||||
|
|
Loading…
Reference in New Issue