Fixed objects being able to move while executing tasks, closes #603

master
krzys-h 2015-08-25 17:21:25 +02:00
parent 5eae234b83
commit 43901aa62a
1 changed files with 1 additions and 1 deletions

View File

@ -2030,7 +2030,7 @@ bool COldObject::EventProcess(const Event &event)
bool canMove = true; bool canMove = true;
if (Implements(ObjectInterfaceType::TaskExecutor)) if (Implements(ObjectInterfaceType::TaskExecutor))
{ {
canMove = canMove || (IsForegroundTask() && GetForegroundTask()->IsPilot()); canMove = canMove && (!IsForegroundTask() || GetForegroundTask()->IsPilot());
} }
if (Implements(ObjectInterfaceType::Programmable)) if (Implements(ObjectInterfaceType::Programmable))
{ {