forked from Mirrors/openclonk
show exit interaction when inside object (#1169)
parent
d1577dce61
commit
15f75f072b
|
@ -402,7 +402,7 @@ public func Selected()
|
||||||
public func UpdateSelectionStatus()
|
public func UpdateSelectionStatus()
|
||||||
{
|
{
|
||||||
if(!crew) return;
|
if(!crew) return;
|
||||||
|
|
||||||
// determine...
|
// determine...
|
||||||
var sel = 0;
|
var sel = 0;
|
||||||
|
|
||||||
|
@ -434,11 +434,15 @@ public func UpdateSelectionStatus()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(actiontype == ACTIONTYPE_VEHICLE)
|
else if(actiontype == ACTIONTYPE_VEHICLE)
|
||||||
|
{
|
||||||
if(crew->GetProcedure() == "PUSH" && crew->GetActionTarget() == myobject)
|
if(crew->GetProcedure() == "PUSH" && crew->GetActionTarget() == myobject)
|
||||||
sel = 1;
|
sel = 1;
|
||||||
|
}
|
||||||
else if(actiontype == ACTIONTYPE_STRUCTURE)
|
else if(actiontype == ACTIONTYPE_STRUCTURE)
|
||||||
|
{
|
||||||
if(crew->Contained() == myobject)
|
if(crew->Contained() == myobject)
|
||||||
sel = 1;
|
sel = 1;
|
||||||
|
}
|
||||||
else if(actiontype == ACTIONTYPE_INVENTORY)
|
else if(actiontype == ACTIONTYPE_INVENTORY)
|
||||||
{
|
{
|
||||||
if(0 == position)
|
if(0 == position)
|
||||||
|
|
Loading…
Reference in New Issue