← Back to team overview

widelands-dev team mailing list archive

[Bug 530646] Re: Idle military people

 

Mmm ... then pop_task on attack/defend task only should be called:
a) when home building is destroyed / bulldozed
b) when attacker/defender is on home
c) when attacker is on new conquered home
d) when a fatal fail is acheived (for example when soldier can not find a path to home).

Now, I pop_task also is called:
a) when defender could not find a way to attacker soldier.
b) when attacker can not reach attacking building baseflag.

So the last two cases should be fixed.
a) First case simply seek another soldier, if no soldiers can be achieved, then step to our home and check again (start_task_move home only with a single step).
b) Return home and cancel attack when soldier is inside building.

I will fix them as I have time, but until late this night I think I will
not be able to fix them.

Happy hacking!

-- 
Idle military people
https://bugs.launchpad.net/bugs/530646
You received this bug notification because you are a member of Widelands
Developers, which is subscribed to widelands.

Status in Widelands: Triaged

Bug description:
Full description here, only tracked here to be markes as show stopper for rc1

https://sourceforge.net/tracker/?func=detail&aid=2961814&group_id=40163&atid=427221