do not pass controls to disabled cursor anymore (i.e. via SetCrewEnabled)

stable-5.3
David Dormagen 2012-12-22 17:11:06 +01:00 committed by Armin Burgmeier
parent cfd99b09a4
commit b70d1f7e06
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ global func PlayerControl(int plr, int ctrl, id spec_id, int x, int y, int stren
// Forward control to cursor
var cursor = GetCursor(plr);
if (cursor)
if (cursor->GetCrewEnabled())
{
// Object controlled by plr
cursor->SetController(plr);