Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] Bug: infinite recursion in settler.c
Home

[freeciv-ai] Bug: infinite recursion in settler.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Bug: infinite recursion in settler.c
From: Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>
Date: Sun, 05 Sep 2004 17:58:59 +0200


In 'auto_settler_findwork' the last line of the function can make a recursion.

In current cvs is usual to see 'could not make city on (x,y) grassland'... So the code attempts to select another location and recurses to cuild that city.

So, an easy fix is to place a flag as a parameter in 'auto_settler_findwork', or investigate what fails in 'ai_do_build_city'.




[Prev in Thread] Current Thread [Next in Thread]