Re: [Freeciv-Dev] caravan behavior
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > 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,
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/02
- Re: [Freeciv-Dev] caravan behavior, Nicolas Brunel, 1999/05/02
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior,
Nicolas Brunel <=
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior, Nicolas Brunel, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior, Lalo Martins, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/05
- Re: [Freeciv-Dev] caravan behavior, Lalo Martins, 1999/05/06
- Re: [Freeciv-Dev] caravan behavior, Nicolas Brunel, 1999/05/06
- [Freeciv-Dev] barbarian patch, Falk Hueffner, 1999/05/07
- Re: [Freeciv-Dev] caravan behavior, Greg Wooledge, 1999/05/06
Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/02
|
|