Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11818) Bug in 2.0.0 beta 6(transfering transported uni
Home

[Freeciv-Dev] (PR#11818) Bug in 2.0.0 beta 6(transfering transported uni

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Niels@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11818) Bug in 2.0.0 beta 6(transfering transported units)
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Fri, 7 Jan 2005 03:06:38 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11818 >

I don't know if it is the case, but the attached patch surely fixes some
bugs.

transfer_city_units() is pretty dump function which can teleport
transports without it's cargo, so it can leave some units on water even
during transfer city to allies.
--
mateusz

Index: citytools.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/citytools.c,v
retrieving revision 1.276.2.9
diff -u -r1.276.2.9 citytools.c
--- citytools.c 9 Dec 2004 16:28:10 -0000       1.276.2.9
+++ citytools.c 7 Jan 2005 11:05:34 -0000
@@ -850,7 +850,7 @@
   unit_list_unlink_all(&old_city_units);
   reset_move_costs(pcity->tile);
 
-  if (resolve_stack && !pplayers_allied(pgiver, ptaker)) {
+  if (resolve_stack) {
     resolve_unit_stacks(pgiver, ptaker, transfer_unit_verbose);
   }
 

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