forked from Mirrors/openclonk
C4MouseControl: Don't set TargetObject to non-selectable objects in crosshair mode
This makes mouse click controls not being delivered to MD_NoClick objects.
parent
8a02a17d44
commit
18c96d4987
|
@ -609,6 +609,8 @@ void C4MouseControl::UpdateCursorTarget()
|
|||
|
||||
if ( (TargetObject->Category & C4D_MouseSelect) && CanSelect)
|
||||
Cursor=C4MC_Cursor_Select;
|
||||
else
|
||||
TargetObject = NULL;
|
||||
}
|
||||
|
||||
// Help
|
||||
|
|
Loading…
Reference in New Issue