Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed stopAction_==false check for default GOAPAction preconditions
Erroneous default `GOAPAction` behaviour: - `GOAPAction.PreconditionsSatisfied()` checks if `stopAction_==false`. - Default `GOAPAction.OnDeactivate()` sets `stopAction_=false`, and is called by `GOAPPlanner` when completing/stopping an action - `stopAction_` is only set to `true` again in `GOAPAction.OnActivate()`, called by `GOAPPlanner` when selecting the action - However `GOAPAction.PreconditionsSatisfied()` is called in the planning stage when seeing if a path is viable, and so by default if a `GOAPAction` was deactivated by the planner, it could not be selected again for a viable path. - This just removes the `stopAction_==false` check
- Loading branch information