Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] (PR#9106) parameter->is_pos_dangerous is sometimes unset
Home

[Freeciv-Dev] (PR#9106) parameter->is_pos_dangerous is sometimes unset

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9106) parameter->is_pos_dangerous is sometimes unset
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Fri, 25 Jun 2004 10:56:05 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9106 >

> [glip - Fri Jun 25 17:52:38 2004]:
> 
> See, for example,
>       pft_fill_unit_overlap_param
>       pft_fill_unit_parameter
> 
> Those responsible should repent and fix the bug.

Attached is a fix.  Not that I am responsible for the bug... 

G.

Index: common/aicore/pf_tools.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/aicore/pf_tools.c,v
retrieving revision 1.16
diff -u -r1.16 pf_tools.c
--- common/aicore/pf_tools.c    16 Jun 2004 23:55:56 -0000      1.16
+++ common/aicore/pf_tools.c    25 Jun 2004 17:54:14 -0000
@@ -543,6 +543,8 @@
   parameter->turn_mode = TM_CAPPED;
   parameter->get_TB = NULL;
   parameter->get_EC = NULL;
+  parameter->is_pos_dangerous = NULL;
+  parameter->get_zoc = NULL;
   BV_CLR_ALL(parameter->unit_flags);
 
   parameter->start_x = punit->x;

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