Skip to content

Commit

Permalink
Fix #4919
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Jul 28, 2015
1 parent ecf0c51 commit bec78c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rts/Sim/Misc/CollisionHandler.cpp
Expand Up @@ -195,6 +195,9 @@ bool CCollisionHandler::Collision(const CollisionVolume* v, const CMatrix44f& m,

bool CCollisionHandler::MouseHit(const CUnit* u, const float3& p0, const float3& p1, const CollisionVolume* v, CollisionQuery* cq)
{
if (cq != NULL)
cq->Reset();

if (!u->IsInVoid()) {
if (v->DefaultToPieceTree()) {
return (CCollisionHandler::IntersectPieceTree(u, p0, p1, cq));
Expand Down

2 comments on commit bec78c2

@ashdnazg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a simple issue but took me more than 3 hours to figure :(
I was trying to debug the math, but obviously couldn't find what's wrong...

@PicassoCT
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old second language border problem ?
One language (c++: purpose data transfer) wraps another (arithmetic expression: purpose transformation of data) once thinkin in a language about a problem in that language, the other languages problems become sort of invisible :)

Please sign in to comment.