Author: mir3x
Date: Tue Feb  7 16:55:06 2017
New Revision: 34988

URL: http://svn.gna.org/viewcvs/freeciv?rev=34988&view=rev
Log:
Qt client - find best transport from correct tile for transport dialog.

See gna bug #25492


Modified:
    trunk/client/gui-qt/dialogs.cpp

Modified: trunk/client/gui-qt/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/dialogs.cpp?rev=34988&r1=34987&r2=34988&view=diff
==============================================================================
--- trunk/client/gui-qt/dialogs.cpp     (original)
+++ trunk/client/gui-qt/dialogs.cpp     Tue Feb  7 16:55:06 2017
@@ -3540,7 +3540,7 @@
   int tcount;
   hud_unit_loader *hul;
   struct unit_list *potential_transports = unit_list_new();
-  struct unit *best_transport = transporter_for_unit(pcargo);
+  struct unit *best_transport = transporter_for_unit_at(pcargo, ptile);
 
   unit_list_iterate(ptile->units, ptransport) {
     if (can_unit_transport(ptransport, pcargo)


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

Reply via email to