Skip to content

Commit

Permalink
Handle a very rare case in CSolidObject::UpdateDirVectors() properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Sep 6, 2023
1 parent 5c65780 commit f998a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Objects/SolidObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void CSolidObject::UpdateDirVectors(const float3& uDir)
frontdir = fDir.rotateByUpVector(uDir, norm); //doesn't change vector magnitude
}
else {
frontdir = fDir;
frontdir = fDir * Sign(uDir.y);
}
rightdir = (frontdir.cross(uDir)).Normalize();
updir = uDir;
Expand Down

0 comments on commit f998a60

Please sign in to comment.