Fixed problems with motor() + fire() in CBot while the robot was selected
parent
1059ae37c1
commit
0bff05f095
|
@ -2030,14 +2030,14 @@ bool COldObject::EventProcess(const Event &event)
|
|||
else if (GetSelect())
|
||||
{
|
||||
bool canMove = true;
|
||||
if (Implements(ObjectInterfaceType::Programmable))
|
||||
{
|
||||
canMove = canMove && !IsProgram();
|
||||
}
|
||||
if (Implements(ObjectInterfaceType::TaskExecutor))
|
||||
{
|
||||
canMove = canMove || (IsForegroundTask() && GetForegroundTask()->IsPilot());
|
||||
}
|
||||
if (Implements(ObjectInterfaceType::Programmable))
|
||||
{
|
||||
canMove = canMove && !IsProgram();
|
||||
}
|
||||
|
||||
if ( canMove )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue