C4MouseControl: Don't set TargetObject to non-selectable objects in crosshair mode

This makes mouse click controls not being delivered to MD_NoClick objects.
Armin Burgmeier 2012-01-31 23:46:15 +01:00
parent 8a02a17d44
commit 18c96d4987
1 changed files with 2 additions and 0 deletions

View File

@ -609,6 +609,8 @@ void C4MouseControl::UpdateCursorTarget()
if ( (TargetObject->Category & C4D_MouseSelect) && CanSelect)
Cursor=C4MC_Cursor_Select;
else
TargetObject = NULL;
}
// Help