Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
Re: [Freeciv-Dev] caravan behavior
Home

Re: [Freeciv-Dev] caravan behavior

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] caravan behavior
From: Nicolas Brunel <brunel@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 5 May 1999 14:19:52 +0000 (GMT)

> > Index: server/unithand.c
> > ===================================================================
> > RCS file: /home/freeciv/CVS/freeciv/server/unithand.c,v
> > retrieving revision 1.66
> > diff -u -r1.66 unithand.c
> > --- unithand.c      1999/04/26 07:16:19     1.66
> > +++ unithand.c      1999/05/02 18:27:55
> > @@ -961,6 +961,7 @@
> >      pcity_dest=find_city_by_id(req->city_id);
> >      
> >      if(unit_flag(punit->type, F_CARAVAN) && pcity_dest &&
            unit_can_help_build_wonder(punit, pcity_dest) &&
           ( can_unit_move_to_tile ... 
  +        || try_move_unit(punit,pcity_dest->x,pcity_dest->y))) 
> >        pcity_dest->shield_stock+=50;
> >        if (build_points_left(pcity_dest) < 0) {

Here, how I see things now.
It popup the caravan window.
If the unit has enough move left it's ok.
Else, we use unit try_move_unit.

Best regards,


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