Author: cazfi
Date: Sun Jan 29 20:51:01 2017
New Revision: 34897

URL: http://svn.gna.org/viewcvs/freeciv?rev=34897&view=rev
Log:
Find "best" transport from correct tile for transport dialog.

Reported by Christian Knoke <chrisk>

See bug #25406

Modified:
    branches/S2_6/client/gui-gtk-3.0/transportdlg.c
    branches/S2_6/client/gui-gtk-3.22/transportdlg.c

Modified: branches/S2_6/client/gui-gtk-3.0/transportdlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.0/transportdlg.c?rev=34897&r1=34896&r2=34897&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.0/transportdlg.c     (original)
+++ branches/S2_6/client/gui-gtk-3.0/transportdlg.c     Sun Jan 29 20:51:01 2017
@@ -83,7 +83,7 @@
 {
   int tcount;
   struct unit_list *potential_transports = unit_list_new();
-  struct unit *best_transport = transporter_for_unit(cargo);
+  struct unit *best_transport = transporter_for_unit_at(cargo, ptile);
 
   unit_list_iterate(ptile->units, ptransport) {
     if (can_unit_transport(ptransport, cargo)

Modified: branches/S2_6/client/gui-gtk-3.22/transportdlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.22/transportdlg.c?rev=34897&r1=34896&r2=34897&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.22/transportdlg.c    (original)
+++ branches/S2_6/client/gui-gtk-3.22/transportdlg.c    Sun Jan 29 20:51:01 2017
@@ -83,7 +83,7 @@
 {
   int tcount;
   struct unit_list *potential_transports = unit_list_new();
-  struct unit *best_transport = transporter_for_unit(cargo);
+  struct unit *best_transport = transporter_for_unit_at(cargo, ptile);
 
   unit_list_iterate(ptile->units, ptransport) {
     if (can_unit_transport(ptransport, cargo)


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to