Skip to content
Permalink
Browse files

Gajops suggested change

  • Loading branch information
Jose Luis Cercos-Pita
Jose Luis Cercos-Pita committed Mar 23, 2020
1 parent 60884a6 commit 133ba6a143fc2ce54f8459d007b5c66816fa33f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/Sim/MoveTypes/GroundMoveType.cpp
@@ -2038,7 +2038,7 @@ void CGroundMoveType::HandleUnitCollisions(
const float2 collideeParams = {collidee->speed.w, collideeMobile? collideeMD->CalcFootPrintMaxInteriorRadius(): collidee->CalcFootPrintMaxInteriorRadius()};
const float4 separationVect = {collider->pos - collidee->pos, Square(colliderParams.y + collideeParams.y)};

if (!checkCollisionFuncs[allowSAT && (forceSAT || (collideeMobile ? collideeMD->CalcFootPrintAxisStretchFactor() > 0.1f : false))](separationVect, collider, collidee, colliderMD, collideeMD))
if (!checkCollisionFuncs[allowSAT && (forceSAT || (collideeMobile && collideeMD->CalcFootPrintAxisStretchFactor() > 0.1f))](separationVect, collider, collidee, colliderMD, collideeMD))
continue;


0 comments on commit 133ba6a

Please sign in to comment.
You can’t perform that action at this time.