Author: cazfi
Date: Sat Dec 26 20:37:12 2015
New Revision: 31220

URL: http://svn.gna.org/viewcvs/freeciv?rev=31220&view=rev
Log:
Replaced tile_has_road() call with direct tile_has_extra() call when extra 
pointer already known.

See patch #6722

Modified:
    trunk/common/map.c

Modified: trunk/common/map.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/map.c?rev=31220&r1=31219&r2=31220&view=diff
==============================================================================
--- trunk/common/map.c  (original)
+++ trunk/common/map.c  Sat Dec 26 20:37:12 2015
@@ -778,7 +778,7 @@
             case RMM_RELAXED:
               if (cost > proad->move_cost * 2) {
                 cardinal_between_iterate(t1, t2, between) {
-                  if (tile_has_road(between, proad)) {
+                  if (tile_has_extra(between, pextra)) {
                     /* TODO: Should we restrict this more?
                      * Should we check against enemy cities on between tile?
                      * Should we check against non-native terrain on between 
tile?


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

Reply via email to