Skip to content

Commit

Permalink
query check init with only inbounds height map
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsquirrel1 committed Aug 1, 2024
1 parent 9235fab commit 7e87fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/MoveTypes/MoveMath/MoveMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ MoveTypes::CheckCollisionQuery::CheckCollisionQuery(const CSolidObject* ref)

MoveTypes::CheckCollisionQuery::CheckCollisionQuery(const MoveDef* refMoveDef, float3 testPos)
: moveDef(refMoveDef)
, pos(testPos)
, pos(testPos.cClampInBounds())
{
UpdateElevationForPos(pos);
}
Expand Down

0 comments on commit 7e87fc1

Please sign in to comment.