Menu

#38 AI heroes cannot get off ship

Unstable_(example)
closed
nobody
None
3
2014-10-17
2014-09-30
M3rlin
No

When playing games like Seven Lakes, the simple AI never allows heroes to exit a ship once they have entered it. Ai Heroes just sail around forever. A simple solution is to change the following in ai_heroes.cpp method AIHeroesAddedTask(Heroes & hero):

if(hero.isShipMaster())
    {
        if(! tile.isWater()) continue;

Should be:

    if(hero.isShipMaster())
    {
        if(MP2::OBJ_COAST!=tile.GetObject() && !tile.isWater()) continue;

Cheers,

M3rlin

Discussion

  • SandySandy

    SandySandy - 2014-10-17
    • status: open --> closed
     
  • SandySandy

    SandySandy - 2014-10-17

    fixed, svn rev. 3243. thanks you!

     

Log in to post a comment.

MongoDB Logo MongoDB