[Freeciv-Dev] (PR#7324) orders and AI goto conflict
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7324 >
Here's another possible (but as of yet, untested) patch.
- Gregory Richards
(AKAQuinn AT hotmail.com)
I will make an acct soon ;)
--- aiunit.c 2004-01-26 12:28:20.000000000 -0800
+++ aiunit.c 2004-01-26 12:55:43.000000000 -0800
@@ -2586,6 +2586,13 @@
CHECK_UNIT(punit);
+ /* Make sure the unit doesn't have orders - humans always have
+ precedence */
+ if (unit_has_orders(punit)) {
+ punit->ai.ai_role = AIUNIT_NONE;
+ return;
+ }
+
/* retire useless barbarian units here, before calling the management
function */
if( is_barbarian(pplayer) ) {
|
|