Author: cazfi Date: Sun Jan 29 20:50:55 2017 New Revision: 34896 URL: http://svn.gna.org/viewcvs/freeciv?rev=34896&view=rev Log: Find "best" transport from correct tile for transport dialog.
Reported by Christian Knoke <chrisk> See bug #25406 Modified: branches/S3_0/client/gui-gtk-3.0/transportdlg.c branches/S3_0/client/gui-gtk-3.22/transportdlg.c Modified: branches/S3_0/client/gui-gtk-3.0/transportdlg.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-gtk-3.0/transportdlg.c?rev=34896&r1=34895&r2=34896&view=diff ============================================================================== --- branches/S3_0/client/gui-gtk-3.0/transportdlg.c (original) +++ branches/S3_0/client/gui-gtk-3.0/transportdlg.c Sun Jan 29 20:50:55 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/S3_0/client/gui-gtk-3.22/transportdlg.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-gtk-3.22/transportdlg.c?rev=34896&r1=34895&r2=34896&view=diff ============================================================================== --- branches/S3_0/client/gui-gtk-3.22/transportdlg.c (original) +++ branches/S3_0/client/gui-gtk-3.22/transportdlg.c Sun Jan 29 20:50:55 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