Project

General

Profile

Bug #685253

Away mode clears player-set worker tasks

Added by Jacob Nevins 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
AI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I read gna patch #5350 and gna patch #6049 about clearing player-set worker tasks whenever an AI player gets control. ("Even though other (threaded) AI types use worker tasks, they are to setup their own tasks, not to use tasks that were already there.")

Sure enough, if I set tasks in the Qt client and then do "/away" twice, they have gone.

This is probably not what we want -- away mode AI is supposed not to disturb things. I think that even if that's a classic AI that doesn't set new tasks, its workers would still execute existing ones, which is what the player would want.

Would there be a problem with not clearing existing tasks if the AI has the H_AWAY flag?

Also available in: Atom PDF