Re: [Freeciv-Dev] ship goto bugs
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> + boats with sentried units passing through cities sometimes leave them
> within the city; a general distinction between 'sentried' and 'aboard
> ship X' would be useful here but it deviates from Civ I/II
Add a new unit_activity ACTIVITY_ABOARD.
>
> + boats on goto crash into enemy cities; from memory:
> all boats near b, on goto to x, crash into C; C,D,D are enemy cities:
Here is a micro patch which solves this problem.
Index: server/gotohand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/gotohand.c,v
retrieving revision 1.37
diff -u -r1.37 gotohand.c
--- gotohand.c 1999/05/02 04:23:24 1.37
+++ gotohand.c 1999/05/13 20:05:18
@@ -493,7 +493,7 @@
if (!dir_ok(x, y, dest_x, dest_y, k)) c += c;
tm = warmap.seacost[x][y] + c;
if (warmap.seacost[x][y] < punit->moves_left && tm < maxcost &&
- (pplayer->ai.control || !same_pos(x1, y1, dest_x, dest_y)) &&
+ (pplayer->ai.control) &&
tm >= punit->moves_left - (get_transporter_capacity(punit) >
unit_types[punit->type].attack_strength ? 3 : 2) &&
enemies_at(punit, x1, y1)) {
- Re: [Freeciv-Dev] group, (continued)
- Re: [Freeciv-Dev] group, Martin Willemoes Hansen, 1999/05/16
- Re: [Freeciv-Dev] group, Peter Schaefer, 1999/05/17
- Re: [Freeciv-Dev] group, Greg Wooledge, 1999/05/17
- Re: [Freeciv-Dev] group, Martin Willemoes Hansen, 1999/05/18
- [Freeciv-Dev] Jitterbug, Paul Zastoupil, 1999/05/18
- Re: [Freeciv-Dev] Jitterbug, Martin Willemoes Hansen, 1999/05/18
- Re: [Freeciv-Dev] Jitterbug, David Pfitzner, 1999/05/18
- Re: [Freeciv-Dev] ship goto bugs, Bobby D. Bryant, 1999/05/13
Re: [Freeciv-Dev] ship goto bugs, Mark Nettle, 1999/05/13
Re: [Freeciv-Dev] ship goto bugs,
Nicolas Brunel <=
|
|