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:
Lioncash 2020-04-26 03:28:46 -04:00
parent d4264b6469
commit 1948ec3274
1 changed files with 4 additions and 3 deletions

View File

@ -108,12 +108,13 @@ void CWallWalker::GotoNextWaypoint(CStateManager& mgr) {
void CWallWalker::PreThink(float dt, CStateManager& mgr) {
CPatterned::PreThink(dt, mgr);
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;
}
// In GM8Ev0, the game binary also constructs two unused quaternions here.
zeus::CQuaternion quat(GetTransform().buildMatrix3f());
AddMotionState(PredictMotion(dt));
zeus::CQuaternion quat2(GetTransform().buildMatrix3f());
ClearForcesAndTorques();
if (x5d6_25_hasAlignSurface) {
zeus::CPlane plane = x568_alignNormal.GetPlane();