Author: cazfi
Date: Tue Apr 28 22:03:00 2015
New Revision: 28942

URL: http://svn.gna.org/viewcvs/freeciv?rev=28942&view=rev
Log:
Set traderoute direction when caravan establish one.

See bug #23537

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=28942&r1=28941&r2=28942&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Tue Apr 28 22:03:00 2015
@@ -2675,6 +2675,7 @@
     for (i = 0; i < MAX_TRADE_ROUTES; i++) {
       if (pcity_homecity->trade[i] == 0) {
         pcity_homecity->trade[i] = pcity_dest->id;
+        pcity_homecity->trade_direction[i] = RDIR_FROM;
         pcity_homecity->trade_goods[i] = goods;
         break;
       }
@@ -2684,6 +2685,7 @@
     for (i = 0; i < MAX_TRADE_ROUTES; i++) {
       if (pcity_dest->trade[i] == 0) {
         pcity_dest->trade[i] = pcity_homecity->id;
+        pcity_dest->trade_direction[i] = RDIR_TO;
         pcity_dest->trade_goods[i] = goods;
         break;
       }


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

Reply via email to