Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] UnitType check patch

[Freeciv-Dev] UnitType check patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] UnitType check patch
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Thu, 21 Mar 2002 00:27:24 +0000 (WET)


The AI considers building certain units using best_role_unit() calls. The
problem is, it doesn't check if unit with these roles actually are
available for building with the current units.ruleset.
This caused problems on some modpacks with didn't have units with
F_SETTLERS and F_CITIES for example.

The attached patch fixes this. Since i don't know the AI code very well,
someone which knows it better than me should check it for bugs.


Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa

Attachment: ai_utype_check.patch.gz
Description: Binary data

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