mirror of https://github.com/AxioDL/metaforce.git
CWallWalker: Remove unused variables in PreThink
We can leave a comment documenting this to make the code itself a little nicer to read.
This commit is contained in:
parent
d4264b6469
commit
1948ec3274
|
@ -108,12 +108,13 @@ void CWallWalker::GotoNextWaypoint(CStateManager& mgr) {
|
||||||
void CWallWalker::PreThink(float dt, CStateManager& mgr) {
|
void CWallWalker::PreThink(float dt, CStateManager& mgr) {
|
||||||
CPatterned::PreThink(dt, mgr);
|
CPatterned::PreThink(dt, mgr);
|
||||||
if (!GetActive() || x5d6_26_playerObstructed || x5bc_patrolPauseRemTime > 0.f || x5d6_27_disableMove ||
|
if (!GetActive() || x5d6_26_playerObstructed || x5bc_patrolPauseRemTime > 0.f || x5d6_27_disableMove ||
|
||||||
x450_bodyController->IsFrozen() || !x5d6_24_alignToFloor)
|
x450_bodyController->IsFrozen() || !x5d6_24_alignToFloor) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// In GM8Ev0, the game binary also constructs two unused quaternions here.
|
||||||
|
|
||||||
zeus::CQuaternion quat(GetTransform().buildMatrix3f());
|
|
||||||
AddMotionState(PredictMotion(dt));
|
AddMotionState(PredictMotion(dt));
|
||||||
zeus::CQuaternion quat2(GetTransform().buildMatrix3f());
|
|
||||||
ClearForcesAndTorques();
|
ClearForcesAndTorques();
|
||||||
if (x5d6_25_hasAlignSurface) {
|
if (x5d6_25_hasAlignSurface) {
|
||||||
zeus::CPlane plane = x568_alignNormal.GetPlane();
|
zeus::CPlane plane = x568_alignNormal.GetPlane();
|
||||||
|
|
Loading…
Reference in New Issue