Re: [Freeciv-Dev] caravan behavior
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> I was fed up cheating with my caravans so I looked into the code...
> The problem is that you can gain a move using a move when you're near
> a city and want to help to build wonder even if you can't move to this
> city (i.e. 0 moves left). This seems nonsense to me.
Here is a modified version of Fabrice Noilhan patch.
Best regards,
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 &&
+ try_move_unit(punit,pcity_dest->x,pcity->y) &&
unit_can_help_build_wonder(punit, pcity_dest)) {
pcity_dest->shield_stock+=50;
if (build_points_left(pcity_dest) < 0) {
- Re: [Freeciv-Dev] caravan behavior, David Pfitzner, 1999/05/02
- 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, 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
|
|